Create 110-format_security_fix.patch
Trivial patch to fix format security in etherwake source.
This commit is contained in:
parent
f4753c657c
commit
7d48271bd6
1 changed files with 19 additions and 0 deletions
19
net/etherwake/patches/110-format_security_fix.patch
Normal file
19
net/etherwake/patches/110-format_security_fix.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
--- a/ether-wake.c
|
||||||
|
+++ b/ether-wake.c
|
||||||
|
@@ -135,7 +135,7 @@ int main(int argc, char *argv[])
|
||||||
|
case 'D': debug++; break;
|
||||||
|
case 'i': ifname = optarg; break;
|
||||||
|
case 'p': get_wol_pw(optarg); break;
|
||||||
|
- case 'u': printf(usage_msg); return 0;
|
||||||
|
+ case 'u': printf("%s\n", usage_msg); return 0;
|
||||||
|
case 'v': verbose++; break;
|
||||||
|
case 'V': do_version++; break;
|
||||||
|
case '?':
|
||||||
|
@@ -144,7 +144,7 @@ int main(int argc, char *argv[])
|
||||||
|
if (verbose || do_version)
|
||||||
|
printf("%s\n", version_msg);
|
||||||
|
if (errflag) {
|
||||||
|
- fprintf(stderr, brief_usage_msg);
|
||||||
|
+ fprintf(stderr, "%s\n", brief_usage_msg);
|
||||||
|
return 3;
|
||||||
|
}
|
Loading…
Reference in a new issue