aboutsummaryrefslogtreecommitdiff
path: root/lib/mount_bsd.c
diff options
context:
space:
mode:
authorGravatar Miklos Szeredi <miklos@szeredi.hu>2008-02-08 17:46:57 +0000
committerGravatar Miklos Szeredi <miklos@szeredi.hu>2008-02-08 17:46:57 +0000
commitda077510ef8e57f84f199e9845c912806de53b74 (patch)
tree5384c2c537611762b862edff451832988842d6b2 /lib/mount_bsd.c
parent30ece080006087a7e615cce3f7fc51b6d8a5d5bf (diff)
Add support for atomic open(O_TRUNC)
Diffstat (limited to 'lib/mount_bsd.c')
-rw-r--r--lib/mount_bsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mount_bsd.c b/lib/mount_bsd.c
index cf19a7b..62443ac 100644
--- a/lib/mount_bsd.c
+++ b/lib/mount_bsd.c
@@ -102,7 +102,7 @@ static const struct fuse_opt fuse_mount_opts[] = {
static void mount_help(void)
{
fprintf(stderr,
- " -o allow_root allow access to root\n"
+ " -o allow_root allow access to root\n"
);
system(FUSERMOUNT_PROG " --help");
fputc('\n', stderr);
@@ -156,7 +156,7 @@ void fuse_unmount_compat22(const char *mountpoint)
"exec 2>/dev/null; "
"/usr/bin/fstat " FUSE_DEV_TRUNK "* | "
"/usr/bin/awk 'BEGIN{ getline; if (! ($3 == \"PID\" && $10 == \"NAME\")) exit 1; }; "
- " { if ($3 == %d) print $10; }' | "
+ " { if ($3 == %d) print $10; }' | "
"/usr/bin/sort | "
"/usr/bin/uniq | "
"/usr/bin/awk '{ i += 1; if (i > 1){ exit 1; }; printf; }; END{ if (i == 0) exit 1; }'";