checkown -> checkpath

This commit is contained in:
Roy Marples 2007-12-19 14:46:38 +00:00
parent ed620aec61
commit f02d9b6f6f
4 changed files with 7 additions and 7 deletions

View File

@ -48,7 +48,7 @@ LIBRCSO = librc.so.$(LIBRCSOVER)
LIBRCOBJS = librc.o librc-depend.o librc-daemon.o librc-misc.o librc-strlist.o
LDLIBS_LIBRC =
RCOBJS = checkown.o fstabinfo.o mountinfo.o \
RCOBJS = checkpath.o fstabinfo.o mountinfo.o \
rc-depend.o rc-logger.o rc-misc.o rc-plugin.o rc-status.o \
rc-update.o \
runscript.o start-stop-daemon.o rc.o
@ -68,7 +68,7 @@ RC_BINLINKS = einfon einfo ewarnn ewarn eerrorn eerror ebegin eend ewend \
service_stopping service_stopped \
service_inactive service_wasinactive \
service_coldplugged \
checkown fstabinfo mountinfo rc-depend \
checkpath fstabinfo mountinfo rc-depend \
service_get_value service_set_value get_options save_options
RC_SBINLINKS = mark_service_starting mark_service_started \
mark_service_stopping mark_service_stopped \

View File

@ -26,7 +26,7 @@
#include "rc.h"
int checkown (int argc, char **argv);
int checkpath (int argc, char **argv);
int fstabinfo (int argc, char **argv);
int mountinfo (int argc, char **argv);
int rc_depend (int argc, char **argv);

View File

@ -1,5 +1,5 @@
/*
checkown.c
checkpath.c
Checks for the existance of a file or directory and creates it
if necessary. It can also correct its ownership.
*/
@ -177,7 +177,7 @@ static const char * const longopts_help[] = {
};
#include "_usage.c"
int checkown (int argc, char **argv)
int checkpath (int argc, char **argv)
{
int opt;
uid_t uid = geteuid();

View File

@ -839,8 +839,8 @@ int main (int argc, char **argv)
exit (runscript (argc, argv));
else if (strcmp (applet, "start-stop-daemon") == 0)
exit (start_stop_daemon (argc, argv));
else if (strcmp (applet, "checkown") == 0)
exit (checkown (argc, argv));
else if (strcmp (applet, "checkpath") == 0)
exit (checkpath (argc, argv));
argc--;
argv++;