[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] patch for shadow.c
From:       Nick Fedchik <nick () fedchik ! org ! ua>
Date:       2003-06-26 7:33:53
[Download RAW message or body]

Hi All!

Here the tiny patch to make change from const "/etc/shadow" to defined by 
shadow_.h value.

-- 
Best regards, Nick Fedchik
FNM3-RIPE(-UANIC) http://www.fedchik.org.ua

["busybox-libpwdgrp-shadow.patch" (text/x-diff)]

diff -ruN busybox/libpwdgrp/shadow.c busybox-patched/libpwdgrp/shadow.c
--- busybox/libpwdgrp/shadow.c	2003-03-19 11:12:14 +0200
+++ busybox-patched/libpwdgrp/shadow.c	2003-06-26 10:27:10 +0300
@@ -54,8 +54,8 @@
 	if (shadow) {
 		rewind(shadow);
 	} else {
-		if ((shadow = fopen("/etc/shadow", "r")) == NULL)
-			bb_perror_msg_and_die("/etc/shadow");
+               if ((shadow = fopen(SHADOW_FILE, "r")) == NULL)
+                       bb_perror_msg_and_die(SHADOW_FILE);
 	}
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic