public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in kde-base/kdebase/files: kdm-4.0.0-genkdmconf.patch
@ 2008-01-18  6:17 Ingmar Vanhassel (ingmar)
  0 siblings, 0 replies; only message in thread
From: Ingmar Vanhassel (ingmar) @ 2008-01-18  6:17 UTC (permalink / raw
  To: gentoo-commits

ingmar      08/01/18 06:17:58

  Added:                kdm-4.0.0-genkdmconf.patch
  Log:
  epatch doesn't like non-existant patches.
  (Portage version: 2.1.4)

Revision  Changes    Path
1.1                  kde-base/kdebase/files/kdm-4.0.0-genkdmconf.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdebase/files/kdm-4.0.0-genkdmconf.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/kdebase/files/kdm-4.0.0-genkdmconf.patch?rev=1.1&content-type=text/plain

Index: kdm-4.0.0-genkdmconf.patch
===================================================================
    Added a patch to KDE/kdebase/workspace/kdm/kfrontend/genkdmconf.c, to NOT create directories.
---
 kdebase/workspace/kdm/kfrontend/genkdmconf.c |   31 --------------------------
 1 files changed, 0 insertions(+), 31 deletions(-)

diff --git a/kdebase/workspace/kdm/kfrontend/genkdmconf.c b/kdebase/workspace/kdm/kfrontend/genkdmconf.c
index 2d8343d..20aaf8f 100644
--- a/kdebase/workspace/kdm/kfrontend/genkdmconf.c
+++ b/kdebase/workspace/kdm/kfrontend/genkdmconf.c
@@ -266,43 +266,12 @@ isTrue( const char *val )
 static int
 mkpdirs( const char *name, const char *what )
 {
-	char *mfname = mstrdup( name );
-	int i;
-	struct stat st;
-
-	for (i = 1; mfname[i]; i++)
-		if (mfname[i] == '/') {
-			mfname[i] = 0;
-			if (stat( mfname, &st )) {
-				if (mkdir( mfname, 0755 )) {
-					fprintf( stderr, "Cannot create parent %s of %s directory %s: %s\n",
-					         mfname, what, name, strerror( errno ) );
-					free( mfname );
-					return False;
-				}
-				chmod( mfname, 0755 );
-			}
-			mfname[i] = '/';
-		}
-	free( mfname );
 	return True;
 }
 
 static int
 mkdirp( const char *name, int mode, const char *what, int existok )
 {
-	struct stat st;
-
-	if (stat( name, &st )) {
-		mkpdirs( name, what );
-		if (mkdir( name, mode )) {
-			fprintf( stderr, "Cannot create %s directory %s: %s\n",
-			         what, name, strerror( errno ) );
-			return False;
-		}
-		chmod( name, mode );
-		return True;
-	}
 	return existok;
 }
 



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-18  6:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-18  6:17 [gentoo-commits] gentoo-x86 commit in kde-base/kdebase/files: kdm-4.0.0-genkdmconf.patch Ingmar Vanhassel (ingmar)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox