The Samba-Bugzilla – Attachment 245 Details for
Bug 748
sambalp too strict on argv parsing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to make argv parsing less strict.
sambalp.diff (text/plain), 679 bytes, created by
James Peach
on 2003-11-09 19:27:06 UTC
(
hide
)
Description:
Patch to make argv parsing less strict.
Filename:
MIME Type:
Creator:
James Peach
Created:
2003-11-09 19:27:06 UTC
Size:
679 bytes
patch
obsolete
>--- /usr/tmp/TmpDir.869035-0/src/packaging/SGI/sambalp_1.1 Mon Nov 10 14:25:48 2003 >+++ src/packaging/SGI/sambalp Mon Nov 10 14:12:22 2003 >@@ -50,8 +50,9 @@ > EOF > $ENV{'PATH'} = join(':',@PATH); > >-if ($#ARGV < 3) { >- print STDERR "usage: $PROG printer file user system\n"; >+ print "$#ARGV ".scalar(@ARGV)."\n"; >+if (scalar(@ARGV) < 2) { >+ print STDERR "usage: $PROG printer file [user] [system]\n"; > exit; > } > >@@ -59,6 +60,9 @@ > $file = $ARGV[1]; > $user = $ARGV[2]; > $system = $ARGV[3]; >+ >+$user = "nobody" unless($user); >+$system = `hostname` unless($system); > > open(LPSTAT,"/usr/bin/lpstat -t|") || die("Can't get printer list.\n"); > @printers = ();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 748
: 245