summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/pwdgrp.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-04-05Update email address of Fernando Ruiz Casas to <fruizcasas@gmail.com>Joel Sherrill1-1/+1
This was requested to be executed prior to relicensing to BSD-2.
2022-03-24cpukit/: Update Eric Norum contact info and normalize file headersJoel Sherrill1-1/+1
2021-04-29pwdgrp.c: Removed unused variableRyan Long1-2/+0
The 'sc' variable was originally storing the return value of mkdir(). This was causing an issue, so it was changed to make it to where we ignored the return value with (void). The 'sc' variable was left in by mistake.
2021-03-27pwdgrp.c: Change to simply ignore return value from mkdir(/etc)Joel Sherrill1-3/+1
At this point in time, /etc can be created in multiple ways. There is a discussion (#4354) that would define a mechanism for instantiating a base file system with some flexibility for the set of directories included. For now, this particular mkdir() call can fail because /etc could already have been created by at least an initial filesystem image, the shell, or libbsd. closes #4382.
2021-03-23pwdgrp.c: Remove _Assert. /etc may already existRyan Long1-1/+5
Removed the _Assert_unused_variable_equals macro due to /etc having already been created by the network stack initialization or an initial filesystem image. Closes #4282
2021-03-08pwdgrp.c: Fix Unchecked return value from library (CID #1255518)Ryan Long1-1/+5
CID 1255518: Unchecked return value from library in pwdgrp_init(). Closes #4282
2020-04-16Canonicalize config.h includeSebastian Huber1-1/+1
Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
2015-03-26libcsupport: Include missing header fileSebastian Huber1-0/+1
2015-02-20Don't fail to create passwd and group files if /etc already existsNick Withers1-5/+4
2014-11-25cpukit/libcsupport/src/pwdgrp.c: Check return valueJoel Sherrill1-1/+5
Coverity Id 1255518. mkdir() could fail. Check return value and return on failure. Behavior is similar to if open() failed while writing the files.
2014-11-20Ensure security of default user environmentSebastian Huber1-5/+12
2014-11-20libcsupport: Minimal /etc/passwd and /etc/groupSebastian Huber1-20/+19
Create a minimal /etc/passwd and /etc/group with user root and group root only with no passwords.
2014-11-20libcsupport: Avoid TOCTOU and format errorsSebastian Huber1-20/+22
2014-11-20libcsupport: Use pthread_once()Sebastian Huber1-5/+9
2014-11-20libcsupport: Split passwd/group supportSebastian Huber1-120/+9
2014-11-20libcsupport: Add copyrights according to rev histSebastian Huber1-0/+7
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns1-1/+1
2013-09-22getpwent.c: Fix missing prototype warningsJoel Sherrill1-0/+5
2012-12-11libcsupport: Doxygen enhancement GCI task #4Alex Ivanov1-10/+19
http://www.google-melange.com/gci/task/view/google/gci2012/8009205
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill1-2/+0
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
2010-06-282010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill1-26/+21
* libcsupport/src/__brk.c, libcsupport/src/__gettod.c, libcsupport/src/__times.c, libcsupport/src/fchdir.c, libcsupport/src/ftrylockfile.c, libcsupport/src/getpwent.c, libcsupport/src/gxx_wrappers.c, libcsupport/src/libio_sockets.c, libcsupport/src/pipe.c: Use rtems_set_errno_and_return_minus_one() where it was missed before.
2009-09-152009-09-15 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-2/+2
* libcsupport/src/getpwent.c: Ansify.
2007-03-292007-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius1-1/+1
* libcsupport/src/getpwent.c: Remove bogus cast to long.
2004-04-18Remove stray white spaces.Ralf Corsepius1-2/+2
2003-09-042003-09-04 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-1/+1
* include/chain.h, include/clockdrv.h, include/console.h, include/iosupp.h, include/rtc.h, include/spurious.h, include/timerdrv.h, include/vmeintr.h, include/motorola/mc68230.h, include/rtems/libcsupport.h, include/rtems/libio.h, include/rtems/libio_.h, include/rtems/termiostypes.h, include/sys/termios.h, include/zilog/z8036.h, include/zilog/z8530.h, include/zilog/z8536.h, src/__brk.c, src/__gettod.c, src/__sbrk.c, src/__times.c, src/access.c, src/base_fs.c, src/cfgetispeed.c, src/cfgetospeed.c, src/cfsetispeed.c, src/cfsetospeed.c, src/chdir.c, src/chmod.c, src/chown.c, src/chroot.c, src/close.c, src/ctermid.c, src/dup.c, src/dup2.c, src/eval.c, src/fchdir.c, src/fchmod.c, src/fcntl.c, src/fdatasync.c, src/fpathconf.c, src/fs_null_handlers.c, src/fstat.c, src/fsync.c, src/ftruncate.c, src/getdents.c, src/getpwent.c, src/hosterr.c, src/ioctl.c, src/isatty.c, src/libio.c, src/libio_sockets.c, src/link.c, src/lseek.c, src/lstat.c, src/malloc.c, src/mallocfreespace.c, src/mkdir.c, src/mkfifo.c, src/mknod.c, src/mount.c, src/newlibc.c, src/no_libc.c, src/no_posix.c, src/open.c, src/pathconf.c, src/pipe.c, src/privateenv.c, src/read.c, src/readlink.c, src/rewinddir.c, src/rmdir.c, src/seekdir.c, src/stat.c, src/symlink.c, src/sync.c, src/tcdrain.c, src/tcflow.c, src/tcflush.c, src/tcgetattr.c, src/tcgetprgrp.c, src/tcsendbreak.c, src/tcsetattr.c, src/tcsetpgrp.c, src/telldir.c, src/termios.c, src/termiosinitialize.c, src/truncate.c, src/umask.c, src/unixlibc.c, src/unlink.c, src/unmount.c, src/utime.c, src/write.c: URL for license changed.
2003-01-032003-01-03 Till Straumann <strauman@slac.stanford.edu>Jennifer Averett1-18/+0
* ChangeLog, base_fs.c, getpwent.c, privateenv.c Per PR303, Fix violation of node_access copy syemantics
2002-10-022002-10-02 Eric Norum <eric.norum@usask.ca>Joel Sherrill1-113/+326
* src/getpwent.c: Per PR283, reimplement to address reentrancy problems. * src/getgrent.c: Removed as functionality is now just a wrapper for common routines in src/getpwent.c. * Makefile.am: Reflect file removal.
2001-08-092001-08-09 Fernando-Ruiz Casas <correo@fernando-ruiz.com>Joel Sherrill1-2/+17
* libc/getgrent.c, libc/getpwent.c: the 'ls' and more related command previous failed after a chroot(). (unknown user & group)
2001-05-242000-05-24 Fernando Ruiz Casas <fernando.ruiz@ctv.es>Joel Sherrill1-5/+7
* libc/ttyname.c (ttyname_r): Removed duplicate call to closedir(). * libc/getpwent.c: Create a more robust /etc/passwd and /etc/group. * libc/base_fs.c: Change permissions of files and directories. Now uses octal constants.
2001-01-082001-01-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill1-0/+4
* configure.in: Add libc/config.h * libc/Makefile.am: Add INCLUDES += -I. to pickup config.h * libc/.cvsignore: Add config.h and stamp-h * libc/*.c: Add config.h support.
1999-07-02Added code to initialize the /etc/group and /etc/passwd files.Joel Sherrill1-0/+69
1999-07-02Fixed format strings and warnings.Joel Sherrill1-6/+6
1999-07-02Reentrant versions added by Joel. Signficant formatting cleanup.Joel Sherrill1-63/+92
1999-07-02Password and group routines added by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.Joel Sherrill1-0/+129