Source-Changes-HG archive

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

[src/netbsd-1-6]: src/usr.sbin/pkg_install/add Pull up revision 1.9 (requeste...



details:   https://anonhg.NetBSD.org/src/rev/ca7c130df5dd
branches:  netbsd-1-6
changeset: 529523:ca7c130df5dd
user:      tron <tron%NetBSD.org@localhost>
date:      Sun Nov 24 22:34:03 2002 +0000

description:
Pull up revision 1.9 (requested by jschauma in ticket #1011):
- eliminate the hard-coding of pathnames in the default install.
- all command executions now use the path [execvp/execlp/system].
- normalize the macro names as <COMMAND>_CMD.
- in some OS's full pathnames for commands can still be provided, but this
  is not the default.
This was needed to fix -DTAR_FULLPATHNAME="/usr/bin/tar"

diffstat:

 usr.sbin/pkg_install/add/futil.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r 668631809cf1 -r ca7c130df5dd usr.sbin/pkg_install/add/futil.c
--- a/usr.sbin/pkg_install/add/futil.c  Sun Nov 24 22:33:56 2002 +0000
+++ b/usr.sbin/pkg_install/add/futil.c  Sun Nov 24 22:34:03 2002 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: futil.c,v 1.8 1999/08/24 00:48:38 hubertf Exp $        */
+/*     $NetBSD: futil.c,v 1.8.10.1 2002/11/24 22:34:03 tron Exp $      */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "from FreeBSD Id: futil.c,v 1.7 1997/10/08 07:45:39 charnier Exp";
 #else
-__RCSID("$NetBSD: futil.c,v 1.8 1999/08/24 00:48:38 hubertf Exp $");
+__RCSID("$NetBSD: futil.c,v 1.8.10.1 2002/11/24 22:34:03 tron Exp $");
 #endif
 #endif
 
@@ -80,19 +80,19 @@
                cd_to = dir;
 
        if (Mode)
-               if (vsystem("cd %s && %s -R %s %s", cd_to, CHMOD, Mode, arg))
+               if (vsystem("cd %s && %s -R %s %s", cd_to, CHMOD_CMD, Mode, arg))
                        warnx("couldn't change modes of '%s' to '%s'", arg, Mode);
        if (Owner && Group) {
-               if (vsystem("cd %s && %s -R %s.%s %s", cd_to, CHOWN, Owner, Group, arg))
+               if (vsystem("cd %s && %s -R %s.%s %s", cd_to, CHOWN_CMD, Owner, Group, arg))
                        warnx("couldn't change owner/group of '%s' to '%s.%s'",
                            arg, Owner, Group);
                return;
        }
        if (Owner) {
-               if (vsystem("cd %s && %s -R %s %s", cd_to, CHOWN, Owner, arg))
+               if (vsystem("cd %s && %s -R %s %s", cd_to, CHOWN_CMD, Owner, arg))
                        warnx("couldn't change owner of '%s' to '%s'", arg, Owner);
                return;
        } else if (Group)
-               if (vsystem("cd %s && %s -R %s %s", cd_to, CHGRP, Group, arg))
+               if (vsystem("cd %s && %s -R %s %s", cd_to, CHGRP_CMD, Group, arg))
                        warnx("couldn't change group of '%s' to '%s'", arg, Group);
 }



Home | Main Index | Thread Index | Old Index