bug-fileutils
[Top][All Lists]
Advanced

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

Bug in fileutils 4.1 chown.c


From: Brian Doyle
Subject: Bug in fileutils 4.1 chown.c
Date: Fri, 19 Jul 2002 13:14:42 -0700
User-agent: Microsoft-Entourage/10.0.0.1309

Hello,

    The chown program does not work correctly when a user specifies the
--from option.  It looks like someone made a small copy-paste error.
Anyway, here's the fix:


/*  BEGIN UNIFIED DIFF  */
--- fileutils-4.1/src/chown.c   2001-02-17 06:12:51.000000000 -0800
+++ fileutils-4.1/src/chown.c   2002-07-18 22:53:12.000000000 -0700
@@ -173,7 +173,7 @@
        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)
/*  END UNIFIED DIFF  */

Thanks,

Brian Doyle
address@hidden




reply via email to

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