mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-03 12:35:02 +00:00
Last '/' for program name, not first one
MFC after: 1 week
This commit is contained in:
parent
46db17059f
commit
fd162ebf38
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=269811
@ -145,7 +145,7 @@ int main FUNCTION((argc, argv), int argc AND char *argv[])
|
||||
int type = RESPONSE_STANDARD;
|
||||
int force = 0;
|
||||
|
||||
if (slash = strchr(argv[0], '/'))
|
||||
if (slash = strrchr(argv[0], '/'))
|
||||
slash++;
|
||||
else
|
||||
slash = argv[0];
|
||||
|
Loading…
Reference in New Issue
Block a user