Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167881918
D6463.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
587 B
Referenced Files
None
Subscribers
None
D6463.id.diff
View Options
Index: head/usr.bin/ar/ar.c
===================================================================
--- head/usr.bin/ar/ar.c
+++ head/usr.bin/ar/ar.c
@@ -272,10 +272,10 @@
"only one of -s and -S options allowed");
if (bsdar->options & (AR_A | AR_B)) {
- if ((bsdar->posarg = *argv) == NULL)
+ if (*argv == NULL)
bsdar_errc(bsdar, EX_USAGE, 0,
"no position operand specified");
- if ((bsdar->posarg = basename(bsdar->posarg)) == NULL)
+ if ((bsdar->posarg = basename(*argv)) == NULL)
bsdar_errc(bsdar, EX_SOFTWARE, errno,
"basename failed");
argc--;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 26, 5:44 AM (5 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37255351
Default Alt Text
D6463.id.diff (587 B)
Attached To
Mode
D6463: Make code compile when basename() is POSIX compliant.
Attached
Detach File
Event Timeline
Log In to Comment