CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
use the proper sentinel in the execl() call
authorTilman Sauerbeck <tilman@code-monkey.de>
Fri, 14 Apr 2006 08:06:11 +0000 (10:06 +0200)
committerTilman Sauerbeck <tilman@code-monkey.de>
Fri, 14 Apr 2006 08:06:11 +0000 (10:06 +0200)
ChangeLog
pkgutil.cc

index cdd6f1cc018683baa7b19c0c7dd24b6197f602bf..47361a80402c0eb4043b32320813719a33f29cab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
 2006-04-14 Tilman Sauerbeck (tilman at crux nu)
         * ChangeLog, NEWS: Moved old ChangeLog to NEWS
         * pkgmk.in: Write warnings and errors to stderr instead of stdout
+        * pkgutil.cc: Use the proper sentinel in the execl() call
index 571dd6eb71bb98bc59b420c65a3803657a534003..9b41c5c12323762223cc67a117c55354300c35c4 100644 (file)
@@ -435,7 +435,7 @@ void pkgutil::ldconfig() const
                        throw runtime_error_with_errno("fork() failed");
 
                if (pid == 0) {
-                       execl(LDCONFIG, LDCONFIG, "-r", root.c_str(), 0);
+                       execl(LDCONFIG, LDCONFIG, "-r", root.c_str(), (char *) 0);
                        const char* msg = strerror(errno);
                        cerr << utilname << ": could not execute " << LDCONFIG << ": " << msg << endl;
                        exit(EXIT_FAILURE);