[dovecot-cvs] dovecot/src/lib fd-close-on-exec.c,1.4,1.5

cras at procontrol.fi cras at procontrol.fi
Mon Mar 17 06:40:41 EET 2003


Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv10985/lib

Modified Files:
	fd-close-on-exec.c 
Log Message:
Don't assume that major() and minor() are unsigned ints.



Index: fd-close-on-exec.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/fd-close-on-exec.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- fd-close-on-exec.c	4 Mar 2003 03:59:13 -0000	1.4
+++ fd-close-on-exec.c	17 Mar 2003 04:40:39 -0000	1.5
@@ -73,9 +73,10 @@
 
 			if (fstat(first_fd, &st) == 0) {
 #ifdef HAVE_SYS_SYSMACROS_H
-				i_panic("Leaked file fd %d: dev %u.%u inode %s",
-					first_fd, major(st.st_dev),
-					minor(st.st_dev), dec2str(st.st_ino));
+				i_panic("Leaked file fd %d: dev %s.%s inode %s", first_fd,
+					dec2str(major(st.st_dev)),
+					dec2str(minor(st.st_dev)),
+					dec2str(st.st_ino));
 #else
 				i_panic("Leaked file fd %d: dev %s inode %s",
 					first_fd, dec2str(st.st_dev),




More information about the dovecot-cvs mailing list