Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102726065
D30614.id90323.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1022 B
Referenced Files
None
Subscribers
None
D30614.id90323.diff
View Options
Index: usr.bin/xinstall/xinstall.c
===================================================================
--- usr.bin/xinstall/xinstall.c
+++ usr.bin/xinstall/xinstall.c
@@ -1306,7 +1306,7 @@
* strip --
* Use strip(1) to strip the target file.
* Just invoke strip(1) on to_name if from_name is NULL, else try
- * to run "strip -o to_name -- from_name" and return 0 on failure.
+ * to run "strip -o to_name from_name" and return 0 on failure.
* Return 1 on success and assign result of digest_file(to_name)
* to *dresp.
*/
@@ -1314,7 +1314,7 @@
strip(const char *to_name, int to_fd, const char *from_name, char **dresp)
{
const char *stripbin;
- const char *args[6];
+ const char *args[5];
pid_t pid;
int error, serrno, status;
@@ -1328,9 +1328,8 @@
} else {
args[1] = "-o";
args[2] = to_name;
- args[3] = "--";
- args[4] = from_name;
- args[5] = NULL;
+ args[3] = from_name;
+ args[4] = NULL;
}
error = posix_spawnp(&pid, stripbin, NULL, NULL,
__DECONST(char **, args), environ);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 10:12 AM (20 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14674569
Default Alt Text
D30614.id90323.diff (1022 B)
Attached To
Mode
D30614: xinstall: fix invocation of llvm-strip
Attached
Detach File
Event Timeline
Log In to Comment