Update of /cvsroot/fink/dists/10.3/unstable/main/finkinfo/utils
In directory 
sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv24225/10.3/unstable/main/finkinfo/utils

Modified Files:
        coreutils.patch 
Log Message:
Patch to misuse of setuidgid in tests

Index: coreutils.patch
===================================================================
RCS file: 
/cvsroot/fink/dists/10.3/unstable/main/finkinfo/utils/coreutils.patch,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- coreutils.patch     17 Apr 2007 14:45:16 -0000      1.7
+++ coreutils.patch     2 May 2007 05:00:57 -0000       1.8
@@ -46,3 +46,22 @@
  # Copyright (C) 2006-2007 Free Software Foundation, Inc.
  
  # This program is free software; you can redistribute it and/or modify
+diff -Naur coreutils-6.9.orig/tests/rm/fail-2eperm 
coreutils-6.9/tests/rm/fail-2eperm
+--- coreutils-6.9.orig/tests/rm/fail-2eperm    2007-03-18 21:36:44.000000000 
+0000
++++ coreutils-6.9/tests/rm/fail-2eperm 2007-05-02 04:56:38.000000000 +0000
+@@ -52,13 +52,13 @@
+ 
+ # Try to ensure that $NON_ROOT_USERNAME can access
+ # the required version of rm.
+-rm_version=`setuidgid $NON_ROOT_USERNAME rm --version|sed -n '1s/.* //p'`
++rm_version=`setuidgid $NON_ROOT_USERNAME env PATH="$PATH" rm --version|sed -n 
'1s/.* //p'`
+ case $rm_version in
+   $PACKAGE_VERSION) ;;
+   *) echo "$0: cannot access required version ($PACKAGE_VERSION) of rm" 1>&2
+      fail=1 ;;
+ esac
+-setuidgid $NON_ROOT_USERNAME rm -rf a 2> out-t && fail=1
++setuidgid $NON_ROOT_USERNAME env PATH="$PATH" rm -rf a 2> out-t && fail=1
+ 
+ # On some systems, we get `Not owner'.  Convert it.
+ # On other systems (HPUX), we get `Permission denied'.  Convert it, too.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to