summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/pwdgrp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* pwdgrp.c: Removed unused variableRyan Long2021-04-291-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.
* pwdgrp.c: Change to simply ignore return value from mkdir(/etc)Joel Sherrill2021-03-271-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.
* pwdgrp.c: Remove _Assert. /etc may already existRyan Long2021-03-231-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
* pwdgrp.c: Fix Unchecked return value from library (CID #1255518)Ryan Long2021-03-081-1/+5
| | | | | | CID 1255518: Unchecked return value from library in pwdgrp_init(). Closes #4282
* Canonicalize config.h includeSebastian Huber2020-04-161-1/+1
| | | | | | | | Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
* libcsupport: Include missing header fileSebastian Huber2015-03-261-0/+1
|
* Don't fail to create passwd and group files if /etc already existsNick Withers2015-02-201-5/+4
|
* cpukit/libcsupport/src/pwdgrp.c: Check return valueJoel Sherrill2014-11-251-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.
* Ensure security of default user environmentSebastian Huber2014-11-201-5/+12
|
* libcsupport: Minimal /etc/passwd and /etc/groupSebastian Huber2014-11-201-20/+19
| | | | | Create a minimal /etc/passwd and /etc/group with user root and group root only with no passwords.
* libcsupport: Avoid TOCTOU and format errorsSebastian Huber2014-11-201-20/+22
|
* libcsupport: Use pthread_once()Sebastian Huber2014-11-201-5/+9
|
* libcsupport: Split passwd/group supportSebastian Huber2014-11-201-0/+346