distmp3 (0.1.9.ds1-4.3) 06_fix_system_call

Summary

 distmp3host |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

    
download this patch

Patch contents

#! /bin/sh -e
## 06_fix_system_call.dpatch by Michael Eyrich <eyrich@tkn.tu-berlin.de>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Make system() call use ('-m', '0600') instead of ('-m 0600')
## DP: as parameters

if [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
    -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
    -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
    *)
        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
        exit 1;;
esac

exit 0

--- distmp3-0.1.9.orig/distmp3host
+++ distmp3-0.1.9/distmp3host
@@ -176,11 +176,11 @@
 {
 	printd("creating mp3_fifo @config{MP3FIFO}");
 	unlink @config{MP3FIFO};
-	system('mknod', '-m 0600', @config{MP3FIFO}, 'p') && die "can't mknod @config{MP3FIFO}: $!";
+	system('mknod', '-m', '0600', @config{MP3FIFO}, 'p') && die "can't mknod @config{MP3FIFO}: $!";
 
 	printd("creating wav_fifo @config{WAVFIFO}");
 	unlink @config{WAVFIFO};
-	system('mknod', '-m 0600', @config{WAVFIFO}, 'p') && die "can't mknod @config{WAVFIFO}: $!";
+	system('mknod', '-m', '0600', @config{WAVFIFO}, 'p') && die "can't mknod @config{WAVFIFO}: $!";
 }
 
 sub run_program