rpms/rhgb/devel rhgb-0.17.7-no-inittab.patch,1.1,1.2

Casey Dahlin (sadmac) fedora-extras-commits at redhat.com
Wed Mar 19 03:42:22 UTC 2008


Author: sadmac

Update of /cvs/pkgs/rpms/rhgb/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32271

Modified Files:
	rhgb-0.17.7-no-inittab.patch 
Log Message:
Made no-inittab patch function correctly


rhgb-0.17.7-no-inittab.patch:

Index: rhgb-0.17.7-no-inittab.patch
===================================================================
RCS file: /cvs/pkgs/rpms/rhgb/devel/rhgb-0.17.7-no-inittab.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- rhgb-0.17.7-no-inittab.patch	17 Mar 2008 16:54:22 -0000	1.1
+++ rhgb-0.17.7-no-inittab.patch	19 Mar 2008 03:42:00 -0000	1.2
@@ -1,5 +1,5 @@
 diff --git a/src/main.c b/src/main.c
-index ce06c7c..77a5ed5 100644
+index ce06c7c..2481e8c 100644
 --- a/src/main.c
 +++ b/src/main.c
 @@ -313,6 +313,7 @@ check_for_run (void)
@@ -10,11 +10,12 @@
    /* Check that the default runlevel is 5 */	
    g_file_get_contents("/etc/inittab",&contents,&len, NULL);
    if (!contents)
-@@ -330,6 +331,7 @@ check_for_run (void)
+@@ -330,6 +331,8 @@ check_for_run (void)
    }
    g_free(contents);
    g_strfreev(args);
 +#endif
++  if (rc == -1) rc = 0;
    return rc;
  }
  




More information about the fedora-extras-commits mailing list