home-etc: home-etc.spec.in, doc/Makefile.am, doc/path_canonize.3, ...

siefca siefca at pld-linux.org
Thu May 18 02:09:13 CEST 2006


Author: siefca                       Date: Thu May 18 00:09:13 2006 GMT
Module: home-etc                      Tag: HEAD
---- Log message:
- sigsegv located and fixed at realpath.c
- fixed automake files for manual pages and examples
- spec prepared for manual page realpath.1

---- Files affected:
home-etc:
   home-etc.spec.in (1.5 -> 1.6) 
home-etc/doc:
   Makefile.am (1.3 -> 1.4) , path_canonize.3 (1.1 -> 1.2) 
home-etc/src:
   Makefile.am (1.6 -> 1.7) , example.c (1.6 -> 1.7) , example2.c (1.5 -> 1.6) , example3.c (1.3 -> 1.4) , example4.c (1.1 -> 1.2) , realpath.c (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: home-etc/home-etc.spec.in
diff -u home-etc/home-etc.spec.in:1.5 home-etc/home-etc.spec.in:1.6
--- home-etc/home-etc.spec.in:1.5	Wed May 17 03:50:04 2006
+++ home-etc/home-etc.spec.in	Thu May 18 02:09:08 2006
@@ -129,6 +129,7 @@
 %doc AUTHORS CONTRIBUTORS README doc/HOME-ETC.pl.txt
 %attr(755,root,root) %{_bindir}/*
 %attr(755,root,root) /etc/profile.d/home-etc.*sh
+%{_mandir}/man1/*
 /etc/skel/.home_etc
 
 %files lib
@@ -157,6 +158,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2006/05/18 00:09:08  siefca
+- sigsegv located and fixed at realpath.c
+- fixed automake files for manual pages and examples
+- spec prepared for manual page realpath.1
+
 Revision 1.5  2006/05/17 01:50:04  siefca
 - canonize_path() rewritten from scratch
 - added tilde handling while parsing pathnames

================================================================
Index: home-etc/doc/Makefile.am
diff -u home-etc/doc/Makefile.am:1.3 home-etc/doc/Makefile.am:1.4
--- home-etc/doc/Makefile.am:1.3	Wed May 17 03:50:04 2006
+++ home-etc/doc/Makefile.am	Thu May 18 02:09:08 2006
@@ -1,3 +1,3 @@
-dist_man_MANS = get_home_etc.3  home_etc.3  home_etc_path.3  home_etc_reset.3  home_etc_expand_tilde.3
+dist_man_MANS = get_home_etc.3  home_etc.3  home_etc_path.3  home_etc_reset.3  home_etc_expand_tilde.3  path_canonize.3  realpath.1
 
 EXTRA_DIST =  DEVEL-NOTES HOME-ETC.pl.txt

================================================================
Index: home-etc/doc/path_canonize.3
diff -u home-etc/doc/path_canonize.3:1.1 home-etc/doc/path_canonize.3:1.2
--- home-etc/doc/path_canonize.3:1.1	Wed May 17 23:30:32 2006
+++ home-etc/doc/path_canonize.3	Thu May 18 02:09:08 2006
@@ -55,7 +55,7 @@
 this function call:
 .sp
 .BI "_HE_LIKE_TILDE;
-.BI "home_etc_path("""~/././../siefca/.muttrc/ """, " 1 );
+.BI "path_canonize("""~/././../siefca/.muttrc/ """, " 1 );
 .sp    
 will return:
 .I /home/users/siefca/.muttrc

================================================================
Index: home-etc/src/Makefile.am
diff -u home-etc/src/Makefile.am:1.6 home-etc/src/Makefile.am:1.7
--- home-etc/src/Makefile.am:1.6	Wed May 17 18:14:01 2006
+++ home-etc/src/Makefile.am	Thu May 18 02:09:08 2006
@@ -12,7 +12,7 @@
 
 realpath_SOURCES = realpath.c
 
-noinst_PROGRAMS = test example example2 example3
+noinst_PROGRAMS = test example example2 example3 example4
 
 bin_PROGRAMS = realpath
 
@@ -21,6 +21,7 @@
 example_LDADD = libhome_etc.la
 example2_LDADD = libhome_etc.la
 example3_LDADD = libhome_etc.la
+example4_LDADD = libhome_etc.la
 
 TESTS=test
 

================================================================
Index: home-etc/src/example.c
diff -u home-etc/src/example.c:1.6 home-etc/src/example.c:1.7
--- home-etc/src/example.c:1.6	Wed May 17 03:50:04 2006
+++ home-etc/src/example.c	Thu May 18 02:09:08 2006
@@ -18,7 +18,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <home_etc.h> 		/***/
+#include "home_etc.h" 		/***/
 
 /* note that _HE macro is safe, it will never reports NULL	*/
 /* since its argument was not NULL				*/

================================================================
Index: home-etc/src/example2.c
diff -u home-etc/src/example2.c:1.5 home-etc/src/example2.c:1.6
--- home-etc/src/example2.c:1.5	Wed May 17 03:50:04 2006
+++ home-etc/src/example2.c	Thu May 18 02:09:08 2006
@@ -15,7 +15,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <home_etc.h>
+#include "home_etc.h"
 
 int main(int argc, char *argv[])
 {

================================================================
Index: home-etc/src/example3.c
diff -u home-etc/src/example3.c:1.3 home-etc/src/example3.c:1.4
--- home-etc/src/example3.c:1.3	Wed May 17 03:50:04 2006
+++ home-etc/src/example3.c	Thu May 18 02:09:08 2006
@@ -30,7 +30,7 @@
 
 #ifdef HAVE_HOME_ETC_H
 # define _HE_DAEMON
-# include <home_etc.h>
+# include "home_etc.h"
 # define __HE(x) ___HE(x)
 #else
 # define __HE(x) x

================================================================
Index: home-etc/src/example4.c
diff -u home-etc/src/example4.c:1.1 home-etc/src/example4.c:1.2
--- home-etc/src/example4.c:1.1	Wed May 17 11:13:00 2006
+++ home-etc/src/example4.c	Thu May 18 02:09:08 2006
@@ -15,7 +15,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
-#include <home_etc.h>
+#include "home_etc.h"
 
 int main(int argc, char *argv[])
 {
@@ -26,7 +26,7 @@
 
   _HE_LIKE_TILDE;
   p = _HE("~/.myrc");
-  printf("original path: %s\n", p);
+  printf("original path: ~/.myrc\n");
   printf("modified path: %s\n", p);
 
   exit(0);

================================================================
Index: home-etc/src/realpath.c
diff -u home-etc/src/realpath.c:1.3 home-etc/src/realpath.c:1.4
--- home-etc/src/realpath.c:1.3	Thu May 18 01:41:23 2006
+++ home-etc/src/realpath.c	Thu May 18 02:09:08 2006
@@ -38,7 +38,7 @@
       if (r == NULL || *r == '\0')
         {
           er = errno;
-	  if (*r == '\0')
+	  if (r && *r == '\0')
 	    fprintf(stderr, "realpath: got an empty result\n");
 	  else
             perror("realpath");
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/home-etc/home-etc.spec.in?r1=1.5&r2=1.6&f=u
    http://cvs.pld-linux.org/home-etc/doc/Makefile.am?r1=1.3&r2=1.4&f=u
    http://cvs.pld-linux.org/home-etc/doc/path_canonize.3?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/home-etc/src/Makefile.am?r1=1.6&r2=1.7&f=u
    http://cvs.pld-linux.org/home-etc/src/example.c?r1=1.6&r2=1.7&f=u
    http://cvs.pld-linux.org/home-etc/src/example2.c?r1=1.5&r2=1.6&f=u
    http://cvs.pld-linux.org/home-etc/src/example3.c?r1=1.3&r2=1.4&f=u
    http://cvs.pld-linux.org/home-etc/src/example4.c?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/home-etc/src/realpath.c?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list