🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #8083

Re: trn 3.4.1 bug: lots of mkdir messages

#8083
From: Wayne Davison
Date: Tue, 15 Mar 1994 23:49
25 lines
1783 bytes
According to Robert Brown <robertb@Barra.COM>:
> Every time I save an article, I get a bunch of messages from mkdir.

There's a function in util.c that checks how much of the path to which
you are trying to save already exists and runs the "mkdir" command on
the bits that it doesn't find.

First, ensure that the MAKEDIR define is set to TRUE in common.h (it
should be).  If so, what might be happening is that the line:

	if (stat(dirname,&filestat) >= 0 && (filestat.st_mode & S_IFDIR)) {

is not returning the fact that existing directories on your system are
in fact existing directories.  I have a hard time believing that your
system is messing up on such a simple thing, but maybe trn was compiled
with a link file that had the wrong definition for S_IFDIR? I'm not sure
if that's possible, but I've heard of weird systems before.

If you don't see anything wrong with your include files, either debug the
makedir() function in util.c or try setting MAKEDIR FALSE in common.h and
recompiling -- you may have better luck with the shell script version of
makedir.
-- 
Wayne Davison
davison@borland.com
Technical Details
Message-ID: <CMqCvC.35J@borland.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!wupost!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!borland.com!davison
References: <2lqcf8$8g8@bedap.barra.COM>

Show Full Headers
Complete Article Headers
Message-ID: <CMqCvC.35J@borland.com>
Subject: Re: trn 3.4.1 bug: lots of mkdir messages
Date: Tue, 15 Mar 1994 23:49:59 GMT
From: davison@borland.com (Wayne Davison)
References: <2lqcf8$8g8@bedap.barra.COM>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!wupost!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!borland.com!davison
Newsgroups: news.software.readers
Organization: Borland International
Lines: 25