[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] doing uid/gid checking not only when parsing
From: |
Adrian Phillips |
Subject: |
[PATCH] doing uid/gid checking not only when parsing |
Date: |
08 May 2002 07:01:17 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
The following patch helps with the, for me at least, irritating
problem where I have a cf.<conf> file which has sections depending
upon classes which do file checks or copy based upon a user/group
which doesn't exist on certain machines :-
flagisoff::
file owner=user group=group
cfengine complains about this even though flagisoff is off :-)
It also means that a user can be created earlier in a configuration
and used later on without the warnings.
Anyway patch does :-
- don't complain about missing uid/gid while parsing
- set uid/gid to -2 if missing and copy the name to the uid/gid
structure
- when actually doing things, recheck to see if the user exists use it
if its now found, otherwise complain
032_uid_hack
Description: uid/gid rechecking
Sincerely,
Adrian Phillips
--
Your mouse has moved.
Windows NT must be restarted for the change to take effect.
Reboot now? [OK]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] doing uid/gid checking not only when parsing,
Adrian Phillips <=