summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/manpages/smbspool.8.xml7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/manpages/smbspool.8.xml b/docs/manpages/smbspool.8.xml
index 5028bbc419..5f2cb33cdb 100644
--- a/docs/manpages/smbspool.8.xml
+++ b/docs/manpages/smbspool.8.xml
@@ -53,9 +53,10 @@
<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