From cb1006da55802dfbb9e2afb672ac18c9e308b800 Mon Sep 17 00:00:00 2001 From: rodrigc Date: Fri, 5 Jan 2007 02:54:27 +0000 Subject: Fix parsing of -o uid and -o gid options, so that -o uidxx and -o gidxx are not accepted. Submitted by: daichi, Masanori OZAWA --- sbin/mount_unionfs/mount_unionfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/mount_unionfs') diff --git a/sbin/mount_unionfs/mount_unionfs.c b/sbin/mount_unionfs/mount_unionfs.c index 259f07a..d6799f4 100644 --- a/sbin/mount_unionfs/mount_unionfs.c +++ b/sbin/mount_unionfs/mount_unionfs.c @@ -151,11 +151,11 @@ main(int argc, char *argv[]) if (p != NULL) { *p = '\0'; val = p + 1; - if (strncmp(optarg, "gid", 3) == 0) { + if (strcmp(optarg, "gid") == 0) { parse_gid(val, gid_str, sizeof(gid_str)); val = gid_str; } - else if (strncmp(optarg, "uid", 3) == 0) { + else if (strcmp(optarg, "uid") == 0) { parse_uid(val, uid_str, sizeof(uid_str)); val = uid_str; } -- cgit v1.1