aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <miklos@szeredi.hu>2001-11-21 10:03:39 +0000
committerGravatar Miklos Szeredi <miklos@szeredi.hu>2001-11-21 10:03:39 +0000
commitcc8c975f7757ce89d15aad31df6c8b7086169653 (patch)
tree7e313f7a29871bec3496cd4e48febdcf1216d4b2 /util
parent0e8702ba48357fd1596bee4648aede7a9b2adc4e (diff)
writing modules made more easy
Diffstat (limited to 'util')
-rw-r--r--util/fusermount.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/util/fusermount.c b/util/fusermount.c
index 0e256e5..ee51269 100644
--- a/util/fusermount.c
+++ b/util/fusermount.c
@@ -39,6 +39,10 @@
#define FUSE_DEV "/proc/fs/fuse/dev"
+#define FUSE_MOUNTED_ENV "_FUSE_MOUNTED"
+#define FUSE_UMOUNT_CMD_ENV "_FUSE_UNMOUNT_CMD"
+#define FUSE_KERNEL_VERSION_ENV "_FUSE_KERNEL_VERSION"
+
const char *progname;
static const char *get_user_name()
@@ -497,9 +501,10 @@ int main(int argc, char *argv[])
unmount_cmd = (char *) malloc(strlen(mypath) + strlen(mnt) + 64);
sprintf(unmount_cmd, "%s -u %s", mypath, mnt);
- setenv("FUSE_UNMOUNT_CMD", unmount_cmd, 1);
+ setenv(FUSE_UMOUNT_CMD_ENV, unmount_cmd, 1);
sprintf(verstr, "%i", FUSE_KERNEL_VERSION);
- setenv("FUSE_KERNEL_VERSION", verstr, 1);
+ setenv(FUSE_KERNEL_VERSION_ENV, verstr, 1);
+ setenv(FUSE_MOUNTED_ENV, "", 1);
execvp(userprog[0], userprog);
fprintf(stderr, "%s: failed to exec %s: %s\n", progname, userprog[0],