diff options
author | Jeremy Allison <jra@samba.org> | 1998-09-01 20:11:54 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-09-01 20:11:54 +0000 |
commit | 28aa182dbffaa4ffd86047e608400de4b26e80eb (patch) | |
tree | 789ac30eed5ef242b4cd9ffd6cbb84a7c640e0f4 /source/printing/printing.c | |
parent | 8bd2cf0eb7533c3ec2d5767163ffdaf20b01bbff (diff) | |
download | samba-28aa182dbffaa4ffd86047e608400de4b26e80eb.tar.gz samba-28aa182dbffaa4ffd86047e608400de4b26e80eb.tar.xz samba-28aa182dbffaa4ffd86047e608400de4b26e80eb.zip |
More abstraction of file system data types, to move to a 64
bit file interface for the NT SMB's.
Created a new define, SMB_STRUCT_STAT that currently is
defined to be struct stat - this wil change to a user
defined type containing 64 bit info when the correct
wrappers are written for 64 bit stat(), fstat() and lstat()
calls.
Also changed all sys_xxxx() calls that were previously just
wrappers to the same call prefixed by a dos_to_unix() call
into dos_xxxx() calls. This makes it explicit when a pathname
translation is being done, and when it is not.
Now, all sys_xxx() calls are meant to be wrappers to mask
OS differences, and not silently converting filenames on
the fly.
Jeremy.
Diffstat (limited to 'source/printing/printing.c')
-rw-r--r-- | source/printing/printing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/printing/printing.c b/source/printing/printing.c index fae4c1cc05e..45a9515b51e 100644 --- a/source/printing/printing.c +++ b/source/printing/printing.c @@ -112,7 +112,7 @@ void print_file(connection_struct *conn, files_struct *file) if (file_size(file->fsp_name) <= 0) { DEBUG(3,("Discarding null print job %s\n",file->fsp_name)); - sys_unlink(file->fsp_name); + dos_unlink(file->fsp_name); return; } @@ -1033,7 +1033,7 @@ int get_printqueue(int snum, fstring outfile; pstring line; FILE *f; - struct stat sbuf; + SMB_STRUCT_STAT sbuf; BOOL dorun=True; int cachetime = lp_lpqcachetime(); |