mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-05 20:39:16 +00:00
refactor(rootfs): reorganize file structure and remove unnecessary .gitkeep files
Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
@ -33,7 +33,7 @@ export struct passwd *getpwent(void)
|
||||
|
||||
if (pwfile == NULL)
|
||||
{
|
||||
pwfile = fopen("/etc/passwd", "r");
|
||||
pwfile = fopen("/sys/cfg/passwd", "r"); /* FIXME: this path should be OS dependent */
|
||||
if (pwfile == NULL)
|
||||
return NULL;
|
||||
}
|
||||
|
@ -209,7 +209,7 @@ export int gethostname(char *name, size_t namelen)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int fd = open("/etc/hostname", O_RDONLY);
|
||||
int fd = open("/sys/cfg/hostname", O_RDONLY); /* FIXME: this path should be OS dependent */
|
||||
if (fd == -1)
|
||||
return -1;
|
||||
|
||||
|
Reference in New Issue
Block a user