justin, where did you exactly find that code?
what I did was to check the SelfUpdate.pm in: /sw/lib/perl5/Fink/SelfUpdate.pm I found the following: if ($sb[4] != 0 and $> != $sb[4]) { ($username) = getpwuid($sb[4]); $cmd = "su $username -c '$cmd'"; $msg .= "The 'su' command will be used to run the cvs command as the ". "user '$username'. "; } $msg .= "After that, the core packages will be updated right away; ". "you should then update the other packages using commands like ". "'fink update-all'."; print "\n"; &print_breaking($msg); print "\n"; $ENV{CVS_RSH} = "ssh"; if (&execute($cmd)) { die "Updating using CVS failed. Check the error messages above.\n"; } } now it seems obvious that "($username)=getpwuid($sb[4]);" doesn't do what it should. any ideas how to change that? I also looked at "/System/Library/Perl/darwin/auto/POSIX/getpwuid.al" but that didn't make me any smarter either.... :-| oooooh, what to doooo, what to dooooo?!?!?! thanks in advance alex On Mittwoch, Januar 23, 2002, at 12:45 Uhr, Justin Hallett wrote: > for some reason it's not using your username > > if ($cvsuser eq "anonymous") { > &print_breaking("Now logging into the CVS server. When CVS asks > you ". > "for a password, just press return (i.e. the > password > ". > "is empty)."); > $cmd = "cvs -d:pserver:anonymous\@cvs.sourceforge.net:/cvsroot/fink > login"; > if ($username ne "root") { > $cmd = "su $username -c '$cmd'"; > > that is the code that invokes it...as you can see you need $username in > front of the -c > > somehow you need to reconfig your cvs config > > see if there are any lines in your ~/.cvspass about fink. > > [EMAIL PROTECTED] writes: >> su -c 'cvs -z3 update -d -P' >> su: illegal option -- c >> Usage: su [-flm] [login [shell arguments]] > > ¸.·´^`·.,][JFH][`·.,¸¸.·´][JFH][¸.·´^`·., > Justin F. Hallett > CAISnet Inc. > 2nd Floor, 11635 - 160 Street > Edmonton, AB, Canada T5M 3Z3 > Phone: (780)-408-3094 > Fax: (780)-454-3200 > E-Mail: [EMAIL PROTECTED] > http://www.caisnet.com/ > ¸.·´^`·.,][JFH][`·.,¸¸.·´][JFH][¸.·´^`·., > _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users