diff options
author | J. Bruce Fields <bfields@redhat.com> | 2013-09-24 15:23:17 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2013-09-24 15:23:17 -0400 |
commit | 7b5bc7505c16f6e3ae08228426005644417fa05b (patch) | |
tree | fdaad121dee75c3c6d471599e70c1d71a250e45d | |
parent | 7004991526be90ec2647d28c503936dc91bc9100 (diff) | |
download | nfs-utils-7b5bc7505c16f6e3ae08228426005644417fa05b.tar.gz nfs-utils-7b5bc7505c16f6e3ae08228426005644417fa05b.tar.xz nfs-utils-7b5bc7505c16f6e3ae08228426005644417fa05b.zip |
exportfs: test_export shouldn't use invalid uid/gid
From: "J. Bruce Fields" <bfields@redhat.com>
Some newer kernels are rejecting -1 uid/gid. Actually, worse--they're
silently ignoring any attempt to cache such exports, thus preventing
test_export from getting back the errors it needs.
And -1 wasn't a good choice anyway.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | utils/exportfs/exportfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c index 9f79541..4331697 100644 --- a/utils/exportfs/exportfs.c +++ b/utils/exportfs/exportfs.c @@ -420,7 +420,7 @@ static int test_export(char *path, int with_fsid) char buf[1024]; int fd, n; - sprintf(buf, "-test-client- %s 3 %d -1 -1 0\n", + sprintf(buf, "-test-client- %s 3 %d 65534 65534 0\n", path, with_fsid ? NFSEXP_FSID : 0); fd = open("/proc/net/rpc/nfsd.export/channel", O_WRONLY); |