--On Tuesday, May 09, 2006 6:49 PM +0200 Dirk <[EMAIL PROTECTED]> wrote:

tmpnam is said to create a temporary file in the current directory. If
just checked the code. It could be, that if you can't create a file in
the current directory, then this error condition is not properly handled.
From a quick glance through the code it could also be that you will see
the behavoir, that you describe.

In the current directory, or in %temp% (or whatever Windows uses for the standard user temporary directory)? There's no reason to assume you can write to the directory containing the VSS file, but you should always have rights to create files in %temp%.

My Linux man page for tmpnam says it creates the name in the directory specified by P_tmpdir, defined in stdio.h. For Linux this is /tmp.

I just looked at my VS2005 setup and P_tmpdir is defined as the root directory:

#define P_tmpdir "\\"

This is Bad, as a well-administered system won't give ordinary users write permission to the root of a drive. We'll have to see if there's some portable way to refer to the user's desired temporary directory.
_______________________________________________
vss2svn-users mailing list
Project homepage:
http://www.pumacode.org/projects/vss2svn/
Subscribe/Unsubscribe/Admin:
http://lists.pumacode.org/mailman/listinfo/vss2svn-users-lists.pumacode.org
Mailing list web interface (with searchable archives):
http://dir.gmane.org/gmane.comp.version-control.subversion.vss2svn.user

Reply via email to