FreeBSD Bugzilla – Attachment 22716 Details for
Bug 39318
/bin/mv executes /bin/cp and /bin/rm without --
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 588 bytes, created by
Serge van den Boom
on 2002-06-15 03:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Serge van den Boom
Created:
2002-06-15 03:20:01 UTC
Size:
588 bytes
patch
obsolete
>diff -u mv/mv.c mv.patched/mv.c >--- mv/mv.c Sat Jun 15 03:10:09 2002 >+++ mv.patched/mv.c Sat Jun 15 03:11:23 2002 >@@ -331,7 +331,7 @@ > int pid, status; > > if ((pid = fork()) == 0) { >- execl(_PATH_CP, "mv", vflg ? "-PRpv" : "-PRp", from, to, >+ execl(_PATH_CP, "mv", vflg ? "-PRpv" : "-PRp", "--", from, to, > (char *)NULL); > warn("%s", _PATH_CP); > _exit(1); >@@ -350,7 +350,7 @@ > return (1); > } > if (!(pid = vfork())) { >- execl(_PATH_RM, "mv", "-rf", from, (char *)NULL); >+ execl(_PATH_RM, "mv", "-rf", "--", from, (char *)NULL); > warn("%s", _PATH_RM); > _exit(1); > }
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 39318
: 22716