Hi:
Below are patches that I have added to nmh for the past several releases.
I believe them to be universally applicable and would like them to be
mainstreamed. Thanks!
The first two, changes to Makefile.in, are the result of our package and
installation procedures which use AFS. Hard links in AFS are not allowed.
The second set recognizes that the mh mail hierarchy may have symbolic links,
so decrementing the link count for each entry in the directory is in fact wrong.
Thanks for your consideration.
Also, I am not a member of this list so will someone in authority advise as to
the disposition of this request? Thanks again!
--
Larry Rogers
Member, Technical Staff
Network Systems Survivability Program
Software Engineering Institute
Carnegie-Mellon University
4500 Fifth Avenue
Pittsburgh, PA 15213
lrr(_at_)cert(_dot_)org
lrr(_at_)sei(_dot_)cmu(_dot_)edu
Phone: 412-268-8907 (Direct)
412-268-7700 (SEI)
FAX: 412-268-5758
*** nmh-0.24/mts/smtp/Makefile.in 1998-02-27 07:50:09-05 1.1
--- nmh-0.24/mts/smtp/Makefile.in 1998-02-27 07:50:26-05
***************
*** 21,27 ****
DEFS = @DEFS@
INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir)
! LN = ln
LORDER = @LORDER@
TSORT = @TSORT@
RANLIB = @RANLIB@
--- 21,27 ----
DEFS = @DEFS@
INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir)
! LN = ln -s
LORDER = @LORDER@
TSORT = @TSORT@
RANLIB = @RANLIB@
***************
*** 53,59 ****
all: libsmtp.a
rm -f ../libmts.a
! $(LN) libsmtp.a ../libmts.a
libsmtp.a: $(OBJS)
rm -f $@
--- 53,59 ----
all: libsmtp.a
rm -f ../libmts.a
! $(LN) smtp/libsmtp.a ../libmts.a
libsmtp.a: $(OBJS)
rm -f $@
*** nmh-0.24/mts/sendmail/Makefile.in 1998-02-27 07:50:34-05 1.1
--- nmh-0.24/mts/sendmail/Makefile.in 1998-02-27 07:50:51-05
***************
*** 21,27 ****
DEFS = @DEFS@
INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir)
! LN = ln
LORDER = @LORDER@
TSORT = @TSORT@
RANLIB = @RANLIB@
--- 21,27 ----
DEFS = @DEFS@
INCLUDES = -I../.. -I$(srcdir) -I$(top_srcdir)
! LN = ln -s
LORDER = @LORDER@
TSORT = @TSORT@
RANLIB = @RANLIB@
***************
*** 50,56 ****
all: libsend.a
rm -f ../libmts.a
! $(LN) libsend.a ../libmts.a
libsend.a: $(OBJS)
rm -f $@
--- 50,56 ----
all: libsend.a
rm -f ../libmts.a
! $(LN) sendmail/libsend.a ../libmts.a
libsend.a: $(OBJS)
rm -f $@
*** nmh-0.24/uip/folder.c 1998-02-27 07:50:56-05 1.1
--- nmh-0.24/uip/folder.c 1998-02-27 07:51:19-05
***************
*** 738,744 ****
strcpy (cp, dp->d_name);
if (stat (name, &st) != -1 && S_ISDIR(st.st_mode)) {
addfold (base);
! nlink--;
}
}
--- 738,744 ----
strcpy (cp, dp->d_name);
if (stat (name, &st) != -1 && S_ISDIR(st.st_mode)) {
addfold (base);
! if (lstat (name, &st) == -1 ) nlink--;
}
}
*** nmh-0.24/uip/flist.c 1998-02-27 07:51:28-05 1.1
--- nmh-0.24/uip/flist.c 1998-02-27 07:51:52-05
***************
*** 384,390 ****
strcat(name, "/");
strcat(name, dp->d_name);
if ((stat(name, &st) != -1) && S_ISDIR(st.st_mode)) {
! nlinks--;
/* Add this folder to the list */
if (AddFolder(name, showzero) &&
(recurse || searchdepth) && st.st_nlink > 2)
--- 384,390 ----
strcat(name, "/");
strcat(name, dp->d_name);
if ((stat(name, &st) != -1) && S_ISDIR(st.st_mode)) {
! if (lstat (name, &st) == -1 ) nlinks--;
/* Add this folder to the list */
if (AddFolder(name, showzero) &&
(recurse || searchdepth) && st.st_nlink > 2)