s3:client: Fix smbspool device uri handling
commit4a5868be3a9b15ed83731a31d42fbd3c5b11678a
authorAndreas Schneider <asn@samba.org>
Tue, 12 Mar 2019 10:40:30 +0000 (12 11:40 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 26 Mar 2019 07:49:18 +0000 (26 07:49 +0000)
tree1ec4c51c69589df15a3ac161f6f6eff7fd490251
parente28dd0f95b307fcbff2f06f73eb5fe7293b3c24c
s3:client: Fix smbspool device uri handling

If we are executed as a CUPS backend, argv[0] is set to the device uri.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13832

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Bryan Mason <bmason@redhat.com>
Signed-off-by: Guenther Deschner <gd@samba.org>
(cherry picked from commit 69d7a496d3bf52eaa10e81132bb61430863fdd8a)
source3/client/smbspool.c