Re: 2x file listings, comments

Denis Corbin <[email protected]> Tue, 24 Jul 2007 11:39:24 +0200
Newsgroups gmane.comp.sysutils.backup.dar.general
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexander Skwar wrote:
> David Fries <[email protected]> wrote:
> 
>> I started coding up the user and group as a cache system, but if I did
>> complete it that way I didn't keep that version.  I figured it would
>> be better to parse /etc/passwd once rather than a bunch of times, and
> 
> I might be out of context, but why are *you* _parsing_ /etc/passwd?
> What do you do, if users aren't in /etc/passwd, but in some other
> database (NIS, LDAP, ...)? Are you using getpwent() functions?

No, there is no direct pasing of /etc/passwd or /etc/group from dar. Dar
relies on system calls that will either look in theses files and/or rely
on other source (NIS, NIS+, LDAP...).

The argumentation is that the vaste majority of users do not have NIS,
LDAP or other databases, the system only relies on /etc/passwd and
/etc/group files which most of the time do not have more than 50 lines.

> 
> Alexander Skwar
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/
> _______________________________________________
> Dar-discussions mailing list
> Dar-discussions-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/dar-discussions
> 
> 
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGpcjLpC5CI8gYGlIRArOSAJ9zMa4afd9z+2Swm7j4FBajPrkb9ACfVNmQ
bmRvXb4jqi9j8bXhFUNPEYw=
=ostf
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/