libmagic.3 fix
Peter Avalos
pavalos at theshell.com
Sat Nov 11 21:44:36 PST 2006
After importing the vendor's man page for libmagic, I noticed that there's
a cross-reference to errno(3) instead of errno(2). Since I'm still trying
to figure out this patch system we have instead of using vendor branches,
I'd like some input on the following patch to fix libmagic.3 which is also
available at http://leaf.dragonflybsd.org/~pavalos/libmagic.diff.
--Peter
Index: Makefile
===================================================================
RCS file: /cvs/src/lib/libmagic/Makefile,v
retrieving revision 1.13
diff -u -r1.13 Makefile
--- Makefile 12 Nov 2006 04:51:56 -0000 1.13
+++ Makefile 12 Nov 2006 05:32:15 -0000
@@ -30,7 +30,7 @@
MLINKS+= libmagic.3 magic_compile.3
MLINKS+= libmagic.3 magic_load.3
-CLEANFILES+= magic magic.mgc magic.mime.mgc magic.mime.lnk libmagic.3
+CLEANFILES+= magic magic.mgc magic.mime.mgc magic.mime.lnk libmagic.man libmagic.3
FILES= magic magic.mgc ${MAGICDIR}/magic.mime magic.mime.mgc
FILESDIR= /usr/share/misc
@@ -38,7 +38,10 @@
MAGFILES= ${MAGICDIR}/Header ${MAGICDIR}/Localstuff\
${MAGICDIR}/Magdir/[a-z]*
-libmagic.3: ${CONTRIBDIR}/doc/libmagic.man
+libmagic.man: ${CONTRIBDIR}/doc/libmagic.man
+ patch -o ${.TARGET} ${.ALLSRC} libmagic.man.patch
+
+libmagic.3: libmagic.man
sed -e s at __CSECTION__@1 at g \
-e s at __FSECTION__@5 at g \
-e s at __VERSION__@${VERSION}@g \
Index: libmagic.man.patch
===================================================================
RCS file: libmagic.man.patch
diff -N libmagic.man.patch
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ libmagic.man.patch 12 Nov 2006 04:55:59 -0000
@@ -0,0 +1,18 @@
+Index: libmagic.man
+===================================================================
+RCS file: /cvs/src/contrib/file-4/doc/libmagic.man,v
+retrieving revision 1.1
+diff -u -r1.1 libmagic.man
+--- libmagic.man 12 Nov 2006 04:51:56 -0000 1.1
++++ libmagic.man 12 Nov 2006 04:53:21 -0000
+@@ -120,7 +120,9 @@
+ The
+ .Fn magic_errno
+ function returns the last operating system error number
+-.Pq .Xr errno 3
++.Po
++.Xr errno 2
++.Pc
+ that was encountered by a system call.
+ .Pp
+ The
Attachment:
pgp00000.pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pgp00000.pgp
Type: application/octet-stream
Size: 189 bytes
Desc: "Description: PGP signature"
URL: <http://lists.dragonflybsd.org/pipermail/submit/attachments/20061111/269549d4/attachment-0016.obj>
More information about the Submit
mailing list