Fix description of when DEVICE_URI and when argv[0] is used. Thanks to
authorJelmer Vernooij <jelmer@samba.org>
Mon, 17 Jan 2005 15:04:38 +0000 (15:04 +0000)
committerGerald W. Carter <jerry@samba.org>
Wed, 23 Apr 2008 13:59:25 +0000 (08:59 -0500)
Jay Fenlason for reporting this.

docs/manpages/smbspool.8.xml

index 5028bbc4198c275ad13646a3cb7d31eee90f377f..5f2cb33cdb75487892dee5109f4dac9a57b5278a 100644 (file)
                <listitem><para>smb://username:password@workgroup/server[:port]/printer</para></listitem>
        </itemizedlist>
 
-       <para>smbspool tries to get the URI from argv[0]. If argv[0] 
-       contains the name of the program then it looks in the <envar>
-       DEVICE_URI</envar> environment variable.</para>
+       <para>smbspool tries to get the URI from the environment variable
+       <envar>DEVICE_URI</envar>. If <envar>DEVICE_URI</envar> is not present, 
+       smbspool will use argv[0] if that starts with <quote>smb://</quote> 
+       or argv[1] if that is not the case.</para>
 
        <para>Programs using the <command>exec(2)</command> functions can 
        pass the URI in argv[0], while shell scripts must set the