From f02d9b6f6f2dc2f860f32ca625dbd3f73f3a411b Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 19 Dec 2007 14:46:38 +0000 Subject: [PATCH] checkown -> checkpath --- src/Makefile | 4 ++-- src/builtins.h | 2 +- src/{checkown.c => checkpath.c} | 4 ++-- src/rc.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) rename src/{checkown.c => checkpath.c} (99%) diff --git a/src/Makefile b/src/Makefile index 602e2320..654ea367 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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 \ diff --git a/src/builtins.h b/src/builtins.h index c0048eb6..43a4d9f9 100644 --- a/src/builtins.h +++ b/src/builtins.h @@ -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); diff --git a/src/checkown.c b/src/checkpath.c similarity index 99% rename from src/checkown.c rename to src/checkpath.c index 23ae3c44..9c1fba67 100644 --- a/src/checkown.c +++ b/src/checkpath.c @@ -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(); diff --git a/src/rc.c b/src/rc.c index 8b01195f..b0f81b6b 100644 --- a/src/rc.c +++ b/src/rc.c @@ -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++;