rdiff-backup-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re[2]: [rdiff-backup-users] First Win32 patch


From: Greg Freemyer
Subject: re[2]: [rdiff-backup-users] First Win32 patch
Date: Wed, 26 Mar 2003 18:27:10 -0500

 >>  >>>>> "GF" == Greg Freemyer <address@hidden>
 >>  >>>>> wrote the following on Tue, 18 Mar 2003 19:23:08 -0500

 >>  GF> I get compiler errors in cmodules.c, but the patch after my
 >>  GF> signature gets rid of them.

 >>  GF> Can you look at this and see if it is acceptable to you.

 >>  GF> BTW: All my changes are inside of a #ifdef WIN32, so I believe
 >>  GF> no other environment should be affected.

 >>  I'm just curious, how does the python library handle this problem?
 >>  When you call os.stat/os.lstat in python under win32, does it work?
 >>  Or would a similar patch be needed for python's standard library?


Ben,

I created a file C:/dummy and then did created a symbolic link to it  
(c:/dummy2).

ls -l shows:

address@hidden /cygdrive/c
$ ls -l d*
-rw-rw-rw-    1 gaf      None           24 Mar 26 18:18 dummy
lrwxrwxrwx    1 gaf      None           90 Mar 26 18:18 dummy2 -> dummy


Then from ntpython:
>>> import os

>>> os.stat("c:/dummy")
(33206, 0L, 2, 1, 0, 0, 24L, 1048720701, 1048720701, 1048720701)
>>> os.stat("c:/dummy2")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
OSError: [Errno 2] No such file or directory: 'c:/dummy2'

>>> os.lstat("c:/dummy")
(33206, 0L, 2, 1, 0, 0, 24L, 1048720701, 1048720701, 1048720701)
>>> os.lstat("c:/dummy2")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
OSError: [Errno 2] No such file or directory: 'c:/dummy2'

So, my theory is that os.lstat simply calls os.stat.

This obviously shows a test case the win32 rdiff-backup will have to handle.

Greg
-- 
Greg Freemyer




reply via email to

[Prev in Thread] Current Thread [Next in Thread]