summaryrefslogtreecommitdiff
path: root/src/rc/checkpath.c
Commit message (Collapse)AuthorAge
* Checkpath: print the path when correcting the ownerWilliam Hubbs2012-10-27
| | | | | | | | | | Checkpath was printing the path it was working with unless it was correcting the owner. In this case, it was printing "checkpath", which is not very useful. Reported-by: <devurandom@gmx.net> X-Gentoo-Bug: 439014 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=439014
* checkpath: fix bool valuesWilliam Hubbs2012-10-09
| | | | | | Use true/false for bool values instead of 0/1. Reported-by: <vapier@gentoo.org>
* checkpath: change the owner/group only when requested to do soWilliam Hubbs2012-10-09
| | | | | | | | | Fix checkpath so that it only changes the owner/group if -o is on the command line. Reported-by: <flameeyes@gentoo.org> X-Gentoo-Bug: 437560 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=437560
* Add -W/--writable function to checkpathChristian Ruppert2012-01-26
| | | | | | | | Checkpath -W will use access(3p) to determine whether or not a path is writable. This is more accurate than test(1p) because it also takes into account whether or not the filesystem is mounted read-only. Modified by William Hubbs to add the man page update.
* Per the systemd tmpfiles implementation, we need to watch out for umask ↵Robin H. Johnson2012-01-23
| | | | | | during initial creation of files as well as potentially changing permissions later. Also do not abort if the items exist already, per truncate rules in tmpfiles. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Ensure that when -F is passed, existing files are truncated properly.Robin H. Johnson2012-01-23
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Respin features.h usage so that we correctly test for features before we use ↵Robin H. Johnson2012-01-23
| | | | | | them. Some BSD libc implementations may have one or the other flag, but not both. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* Revert "Drop include for features.h"Robin H. Johnson2012-01-23
| | | | This reverts commit 30a565f80d6056ccabadf77e347cf17067133f7e.
* Drop include for features.hWilliam Hubbs2012-01-22
| | | | | | | | | | | | | | | The following information is taken from the feature_test_macros man page: <features.h> is a Linux/glibc-specific header file. Other systems have an analogous file, but typically with a different name. This header file is automatically included by other header files as required: it is not necessary to explicitly include it in order to employ feature test macros. Reported-by: Tibor Vago <tibor.vago@gmail.com> X-Gentoo-Bug: 399635 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=399635
* rc/checkpath: tmpfiles.d backend creation codeRobin H. Johnson2012-01-09
| | | | | | | | | | This commit provides the checkpath applet with feature parity to systemd's tmpfiles.c create_item function. Very similarly to the systemd function, it does NOT do any of the cleanup work in this function. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* rc: fix style around case_RC_COMMON_GETOPTMike Frysinger2011-11-19
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* drop useless "All rights reserved" noticeMike Frysinger2011-06-29
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Add (c) to CopyrightRoy Marples2009-05-01
|
* Improve style for KNFRoy Marples2009-04-23
|
* Clean up some compile warnings.Roy Marples2008-09-18
|
* Add -k,--umask option, Gentoo #232455.Roy Marples2008-08-20
|
* open should use 3 args when using O_CREAT.Roy Marples2008-06-17
|
* Add license blurb to a few files and append my email to my name.Roy Marples2008-03-26
|
* Remove null terminated char ** lists in favour of RC_STRINGLIST, using TAILQ ↵Roy Marples2008-03-16
| | | | from queue(3). Refactor code style around the BSD KNF.
* Welcome to 2008.Roy Marples2008-02-22
|
* Just use the extern applet var.Roy Marples2008-02-11
|
* Constantise as much as possible so that it reduces COW usage.Roy Marples2008-02-01
|
* Use the variable instead of type for sizeof.Roy Marples2008-01-30
|
* Quiet some more lint warnings.Roy Marples2008-01-22
|
* tweak help since this works for dirs and filesMike Frysinger2008-01-14
|
* fix --mode parsing by checking the proper function parameterMike Frysinger2008-01-14
|
* add missing "-d" optionMike Frysinger2008-01-14
|
* strip trailing newlinesMike Frysinger2008-01-14
|
* Re-indent to a standard tw of 8.Roy Marples2008-01-11
|
* Set include paths in Makefile instead of .c filesRoy Marples2008-01-06
|
* Add the missing changes from the recent Makefile updatesRoy Marples2008-01-05
|
* Add some .mk stubs to impersonate bsk .mk files to make writing our ↵Roy Marples2008-01-05
Makefiles easier. libeinfo, librc and rc now have their own seperate directories. More work is needed to tidy this up though.