Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 585564
Collapse All | Expand All

(-)fuse-2.9.3.orig/util/fusermount.c (-9 / +6 lines)
Lines 1255-1273 Link Here
1255
1255
1256
	origmnt = argv[optind];
1256
	origmnt = argv[optind];
1257
1257
1258
	drop_privs();
1259
	mnt = fuse_mnt_resolve_path(progname, origmnt);
1258
	mnt = fuse_mnt_resolve_path(progname, origmnt);
1260
	if (mnt != NULL) {
1261
		res = chdir("/");
1262
		if (res == -1) {
1263
			fprintf(stderr, "%s: failed to chdir to '/'\n", progname);
1264
			exit(1);
1265
		}
1266
	}
1267
	restore_privs();
1268
	if (mnt == NULL)
1259
	if (mnt == NULL)
1269
		exit(1);
1260
		exit(1);
1270
1261
1262
	res = chdir("/");
1263
	if (res == -1) {
1264
		fprintf(stderr, "%s: failed to chdir to '/'\n", progname);
1265
		exit(1);
1266
	}
1267
1271
	umask(033);
1268
	umask(033);
1272
	if (unmount)
1269
	if (unmount)
1273
		goto do_unmount;
1270
		goto do_unmount;

Return to bug 585564