From: Markus Schaub <giamsh () gia ! m-m ! ch>
To: tru64-unix-managers
Subject: DU4.0 / setpwfile() problem
Date: Mon, 17 Feb 1997 17:49:32 +0000 [thread overview]
Message-ID: <96078608810339.tru64-unix-managers.marc@archive.invalid> (raw)
Hello alpha-osf-managers
I just tried to port a piece of software from
Digital Unix 3.2c (uname -a: OSF1 micky V3.2 214 alpha) to
Digital Unix 4.0 (uname -a: OSF1 giau001 V4.0 564 alpha)
The code (see below) is calling the function setpwfile()
to direct all /etc/passwd reads to a separate password file.
The program worked fine under 3.2c but does not work under
4.0. Under 4.0 I always get a copy of the /etc/passwd file
printed.
Did anyone encounter the same problem?
Did I overlook something in the configuration of DU4.0?
Did I miss something from the release notes?
Could this be a problem with DU4.0?
Any hints are appreciated.
Thank you
The program source:
#include <stdio.h>
#include <pwd.h>
main(int argc, char *argv[])
{
struct passwd *pw;
setpwfile(argv[1]);
while (pw = getpwent()) {
printf("login [%s] uid/gid (%d/%d) gecos [%s]\n",
pw->pw_name,
pw->pw_uid,
pw->pw_gid,
pw->pw_gecos);
}
}
--
Markus Schaub mailto:giamsh@gia.m-m.ch
GIA GRAPHA-Informatik AG http://www.gia.ch/
Peyermattstr.3, 4665 Oftringen, Switzerland
Tel: +41-62-789 7251 Fax: +41-62-789 7199
reply other threads:[~1997-02-17 17:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox