From e80325bd696a1b6ebe41f2a378e076025e1f2b42 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 19 May 2005 13:50:48 +0000 Subject: [PATCH] Clifford Wolf: Fixed getfiles.c so md5sums will also be created for symlinks. Needed for the postinstall patches. [2005050411073615864] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@6003 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- misc/tools-source/getfiles.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/tools-source/getfiles.c b/misc/tools-source/getfiles.c index 71bd17a78..b9aa18193 100644 --- a/misc/tools-source/getfiles.c +++ b/misc/tools-source/getfiles.c @@ -34,7 +34,7 @@ int main(int argc, char ** argv) { while ( fgets(buf, 512, stdin) != NULL && (fn = strchr(buf, ' ')) != NULL ) { if ( (n = strchr(++fn, '\n')) != NULL ) *n = '\0'; - if ( !lstat(fn,&st) && S_ISREG(st.st_mode) ) + if ( !stat(fn,&st) && S_ISREG(st.st_mode) ) puts(fn); } return 0;