diff options
Diffstat (limited to 'media-sound/xwax/files/xwax-0.6-execlp.patch')
-rw-r--r-- | media-sound/xwax/files/xwax-0.6-execlp.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/media-sound/xwax/files/xwax-0.6-execlp.patch b/media-sound/xwax/files/xwax-0.6-execlp.patch new file mode 100644 index 000000000000..14712f795bd1 --- /dev/null +++ b/media-sound/xwax/files/xwax-0.6-execlp.patch @@ -0,0 +1,34 @@ +diff --git a/library.c b/library.c +index 6b6526e..649738c 100644 +--- a/library.c ++++ b/library.c +@@ -315,8 +315,10 @@ int library_import(struct library_t *li, const char *scan, const char *path) + } + + if(execl(scan, "scan", path, NULL) == -1) { +- perror("execl"); +- exit(-1); ++ if(execlp(scan, "scan", path, NULL) == -1) { ++ perror("execl and execlp"); ++ exit(-1); ++ } + } + + abort(); /* execl() does not return */ +diff --git a/track.c b/track.c +index 6d28943..38c3e9d 100644 +--- a/track.c ++++ b/track.c +@@ -77,8 +77,10 @@ static int start_import(struct track_t *tr, const char *path) + } + + if(execl(tr->importer, "import", path, NULL) == -1) { +- perror("execl"); +- exit(-1); ++ if(execlp(tr->importer, "import", path, NULL) == -1) { ++ perror("execl and execlp"); ++ exit(-1); ++ } + } + + abort(); /* execl() never returns */ |