bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fileutils chown --from bug


From: Chris Yeoh
Subject: fileutils chown --from bug
Date: Mon, 7 May 2001 18:58:41 -0700
User-agent: Mutt/1.2.5i

Hi,

There appears to be a problem with the chown command such that the
--from option doesn't work. The argument passed to --from is never
used. The following patch fixes the bug:

--- fileutils-4.1/src/chown.c.orig      Tue May  8 10:50:55 2001
+++ fileutils-4.1/src/chown.c   Tue May  8 11:43:45 2001
@@ -173,11 +173,11 @@
        case FROM_OPTION:
          {
            char *u_dummy, *g_dummy;
-           const char *e = parse_user_spec (argv[optind],
+           const char *e = parse_user_spec (optarg,
                                             &old_uid, &old_gid,
                                             &u_dummy, &g_dummy);
            if (e)
-             error (1, 0, "%s: %s", quote (argv[optind]), e);
+             error (1, 0, "%s: %s", quote (optarg), e);
            break;
          }
        case 'R':

Regards,

Chris.
-- 
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]