FreeBSD Bugzilla – Attachment 201753 Details for
Bug 235121
shells/rssh: rssh crashes on invocation due to new basename(3) POSIX behaviour
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
comply POSIX standard when using basename, part 2
patch-main.c.in (text/plain), 869 bytes, created by
topical
on 2019-02-05 11:46:49 UTC
(
hide
)
Description:
comply POSIX standard when using basename, part 2
Filename:
MIME Type:
Creator:
topical
Created:
2019-02-05 11:46:49 UTC
Size:
869 bytes
patch
obsolete
>--- main.c.in.orig >+++ main.c.in >@@ -117,7 +117,7 @@ int main( int argc, char **argv ) > else > /* this probably should never happen */ > username = "unknown user!"; >- progname = strdup(log_make_ident(basename(argv[0]))); >+ progname = strdup(log_make_ident(argv[0])); > log_set_facility(LOG_DAEMON); > log_open(); > >@@ -154,14 +154,14 @@ int main( int argc, char **argv ) > case ENOTDIR: > case ENOENT: > fprintf(stderr, "%s: %s is not an executable file, or " >- "permission denied.\n\n", basename(argv[0]), >+ "permission denied.\n\n", argv[0], > argvec[0]); > break; > case EPERM: > /* this shouldn't happen, as we don't run SUID */ > fprintf(stderr, "%s: FS mounted nosuid or process is being " > "traced\n (and you are not root)\n\n", >- basename(argv[0])); >+ argv[0]); > break; > default: > fprintf(stderr, "an unknown error occurred.\n\n");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 235121
:
201321
|
201322
|
201752
|
201753
|
201754
|
201755
|
202073
|
202528