Update of /cvsroot/fink/scripts/installer/resources
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2755

Modified Files:
        VolumeCheck 
Log Message:
Check for write-permission before trying symlink test.


Index: VolumeCheck
===================================================================
RCS file: /cvsroot/fink/scripts/installer/resources/VolumeCheck,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- VolumeCheck 21 Jun 2005 06:49:47 -0000      1.6
+++ VolumeCheck 21 Jun 2005 06:57:40 -0000      1.7
@@ -17,6 +17,13 @@
          last;
        }
 
+       if (! -w "${TARGET_VOLUME}")
+       {
+           print "Fink Installer: User $ENV{USER} cannot write to 
${TARGET_VOLUME} to perform symlink test!\n";
+           $result = ((1 << 5) | 22);
+           last;
+       }
+
        if (symlink("$targetdir.tmp", "$targetdir"))
        {
            unlink("$targetdir");



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to