diff options
author | Tilman Sauerbeck <tilman@code-monkey.de> | 2006-04-14 10:06:11 +0200 |
---|---|---|
committer | Tilman Sauerbeck <tilman@code-monkey.de> | 2006-04-14 10:06:11 +0200 |
commit | 5401bd4576520efbe50d5f6eda4cc70788823879 (patch) | |
tree | d553ede90ee854f52af14b5bb05259ff6e8c588a | |
parent | e55714dd079a329c915776594a06a71252c20474 (diff) | |
download | pkgutils-5401bd4576520efbe50d5f6eda4cc70788823879.tar.gz pkgutils-5401bd4576520efbe50d5f6eda4cc70788823879.tar.xz |
use the proper sentinel in the execl() call
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | pkgutil.cc | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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 @@ -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); |