From: Tilman Sauerbeck Date: Fri, 14 Apr 2006 08:06:11 +0000 (+0200) Subject: use the proper sentinel in the execl() call X-Git-Url: http://gitweb/?a=commitdiff_plain;h=5401bd4576520efbe50d5f6eda4cc70788823879;p=pkgutils-cross.git use the proper sentinel in the execl() call --- diff --git a/ChangeLog b/ChangeLog index cdd6f1c..47361a8 100644 --- 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 diff --git a/pkgutil.cc b/pkgutil.cc index 571dd6e..9b41c5c 100644 --- a/pkgutil.cc +++ b/pkgutil.cc @@ -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);