summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-12-19 14:46:38 +0000
committerRoy Marples <roy@marples.name>2007-12-19 14:46:38 +0000
commitf02d9b6f6f2dc2f860f32ca625dbd3f73f3a411b (patch)
tree6561bc4a9519b358190b2ac6c9c1aa29e14c2786 /src
parented620aec61752b35914aec8841a2576ceb69a277 (diff)
downloadopenrc-f02d9b6f6f2dc2f860f32ca625dbd3f73f3a411b.tar.gz
openrc-f02d9b6f6f2dc2f860f32ca625dbd3f73f3a411b.tar.bz2
openrc-f02d9b6f6f2dc2f860f32ca625dbd3f73f3a411b.tar.xz
checkown -> checkpath
Diffstat (limited to 'src')
-rw-r--r--src/Makefile4
-rw-r--r--src/builtins.h2
-rw-r--r--src/checkpath.c (renamed from src/checkown.c)4
-rw-r--r--src/rc.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/src/Makefile b/src/Makefile
index 602e232..654ea36 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 c0048eb..43a4d9f 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
index 23ae3c4..9c1fba6 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 8b01195..b0f81b6 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++;