From 229811ea3b8c62b78c4592ab1031fbf80d08e847 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 17 Jan 2005 15:04:38 +0000 Subject: [PATCH] Fix description of when DEVICE_URI and when argv[0] is used. Thanks to Jay Fenlason for reporting this. --- docs/manpages/smbspool.8.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/manpages/smbspool.8.xml b/docs/manpages/smbspool.8.xml index 5028bbc4198..5f2cb33cdb7 100644 --- a/docs/manpages/smbspool.8.xml +++ b/docs/manpages/smbspool.8.xml @@ -53,9 +53,10 @@ smb://username:password@workgroup/server[:port]/printer - smbspool tries to get the URI from argv[0]. If argv[0] - contains the name of the program then it looks in the - DEVICE_URI environment variable. + smbspool tries to get the URI from the environment variable + DEVICE_URI. If DEVICE_URI is not present, + smbspool will use argv[0] if that starts with smb:// + or argv[1] if that is not the case. Programs using the exec(2) functions can pass the URI in argv[0], while shell scripts must set the -- 2.11.4.GIT