mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 21:18:28 +03:00
mhddfs: fix-format-security (#23276)
* mhddfs: fix-format-security * mhddfs: use fputs instead of fprintf
This commit is contained in:
parent
768fac6c36
commit
e748e18dde
@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ fuse pkgconfig attr uthash ];
|
buildInputs = [ fuse pkgconfig attr uthash ];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
./fix-format-security-error.patch
|
||||||
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp mhddfs $out/bin/
|
cp mhddfs $out/bin/
|
||||||
|
@ -0,0 +1,12 @@
|
|||||||
|
--- mhddfs-0.1.39/src/usage.c.old 2017-02-28 15:00:25.435438622 +0100
|
||||||
|
+++ mhddfs-0.1.39/src/usage.c 2017-02-28 15:00:33.847454958 +0100
|
||||||
|
@@ -43,7 +43,7 @@
|
||||||
|
"\n"
|
||||||
|
" see fusermount(1) for information about other options\n"
|
||||||
|
"";
|
||||||
|
- fprintf(to, usage);
|
||||||
|
+ fputs(usage, to);
|
||||||
|
if (to==stdout) exit(0);
|
||||||
|
exit(-1);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user