From 67a599d1e8a4d1f48f8accab1de8b9d102928b7b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 17 Jan 2005 15:04:38 +0000 Subject: Fix description of when DEVICE_URI and when argv[0] is used. Thanks to Jay Fenlason for reporting this. (This used to be commit 94a74c1c51dff2114cc64f9869f165ab2ff43429) --- docs/manpages/smbspool.8.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs') 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 @@ 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 -- cgit