According to the comments upstream, the command-line parameter should not be
used for authentication info, instead preferring the environment variable (which
is at least marginally less visible). According to the smbspool manpage:
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 vari‐
able.
According to the comments upstream, the command-line parameter should not be
used for authentication info, instead preferring the environment variable (which
is at least marginally less visible). According to the smbspool manpage:
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 vari‐
able.
The code in smbspool looks like this:
if (strncmp(argv[0], "smb://", 6) == 0) "DEVICE_ URI") != NULL) "DEVICE_ URI"), sizeof(uri) - 1);
strncpy(uri, argv[0], sizeof(uri) - 1);
else if (getenv(
strncpy(uri, getenv(
Please try the attached patch instead of the change you made before.