Commit Graph

99 Commits

Author SHA1 Message Date
Peter Åstrand
f5bce2e0a9 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@878 423420c4-83ab-492f-b58f-81f9feb106b5
2005-04-03 18:08:05 +00:00
Michael Gernoth
71a1aaf38b fix dummy_statfs
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@874 423420c4-83ab-492f-b58f-81f9feb106b5
2005-04-02 17:49:56 +00:00
Michael Gernoth
f1254372b7 Use configure to determine stat(v)fs and setmntent
Tested on:
 * Debian GNU/Linux 3.1
 * Solaris 9/10
 * Mac OSX 10.3
 * HP/UX 10.20
 * OpenBSD 3.4


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@872 423420c4-83ab-492f-b58f-81f9feb106b5
2005-04-02 17:31:27 +00:00
Michael Gernoth
4cca15390d remove C++-style comments
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@864 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-15 11:25:50 +00:00
Michael Gernoth
dad0c173e4 fix compiler warnings
remove unused get_parallel_data


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@831 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-08 01:01:47 +00:00
Peter Åstrand
136341da2a Fixed indentation
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@826 423420c4-83ab-492f-b58f-81f9feb106b5
2005-03-03 08:48:24 +00:00
Erik Forsberg
93892786ab Disk unit names seem to be truncated at seven characters on the WTS,
and I can't see any field allowing for longer names. This is not very
surprising, since native clients export drive names ("A", "H" etc.).

Telling the user that the name is truncated at seven, not eight,
characters.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@817 423420c4-83ab-492f-b58f-81f9feb106b5
2005-02-21 12:39:34 +00:00
Jeroen Meijer
f0bc70c24e fix compilation on cygwin
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@811 423420c4-83ab-492f-b58f-81f9feb106b5
2005-02-14 00:34:23 +00:00
Michael Gernoth
bc994e9a9b OSF1 fixes from [ 938867 ] Misc porting patches
by Marc W. Mengel


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@806 423420c4-83ab-492f-b58f-81f9feb106b5
2004-12-23 20:43:47 +00:00
Michael Gernoth
53eabea36f Big serial- and disk-redirection update from
Andreas Flick <Andreas.Flick@unicon-ka.de>


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@794 423420c4-83ab-492f-b58f-81f9feb106b5
2004-11-03 13:56:52 +00:00
Peter Åstrand
9af3418b70 Support for file systems that cannot handle O_EXCL.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@789 423420c4-83ab-492f-b58f-81f9feb106b5
2004-10-28 07:46:39 +00:00
Peter Åstrand
43982a43ce disk_create: When filename is zero bytes long, we mustn't reference
filename[strlen(filename)-1].


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@786 423420c4-83ab-492f-b58f-81f9feb106b5
2004-10-21 08:28:03 +00:00
Peter Åstrand
7bc64c96f1 Removed unused variables.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@785 423420c4-83ab-492f-b58f-81f9feb106b5
2004-10-21 08:13:33 +00:00
Peter Åstrand
a4fde17332 Implemented fix for the problem with ftruncate on FAT fs, which
doesn't support growing files. Should solve problems with MS Office
and FAT disks.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@784 423420c4-83ab-492f-b58f-81f9feb106b5
2004-10-21 08:10:04 +00:00
Michael Gernoth
09291b13c7 Add support for Mac OSX from Steven Palm <n9yty@n9yty.com>
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@782 423420c4-83ab-492f-b58f-81f9feb106b5
2004-10-15 18:02:45 +00:00
Jay Sorg
c0651b51a1 change HANDLE to NTHANDLE to avoid conflics
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@775 423420c4-83ab-492f-b58f-81f9feb106b5
2004-10-02 01:30:33 +00:00
Michael Gernoth
942ba6ccb6 fix solaris compile...
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@758 423420c4-83ab-492f-b58f-81f9feb106b5
2004-08-25 15:42:42 +00:00
Michael Gernoth
0df51ec33e add HAVE_DECL_DIRFD for FreeBSD
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@757 423420c4-83ab-492f-b58f-81f9feb106b5
2004-08-25 09:48:11 +00:00
Peter Åstrand
60704a5c00 Disk redirection actually uses share names; not drive letters.
Make sure we truncate share names longer than 8 chars.
Documentation updated.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@746 423420c4-83ab-492f-b58f-81f9feb106b5
2004-08-09 13:50:41 +00:00
Michael Gernoth
c4a834b9c6 SGI support from Jeremy Meng <voidfoo@cwazy.co.uk>
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@744 423420c4-83ab-492f-b58f-81f9feb106b5
2004-08-09 11:40:41 +00:00
Michael Gernoth
c56364c6e4 use dirfd-autoconf test
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@741 423420c4-83ab-492f-b58f-81f9feb106b5
2004-08-06 09:50:34 +00:00
Peter Åstrand
fbd632d425 Bugfix: When a broken symlink was found in a directory, the
directory list operation was aborted. This lead to empty directories,
or directories with too few entries.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@697 423420c4-83ab-492f-b58f-81f9feb106b5
2004-05-11 13:52:22 +00:00
Peter Åstrand
70653e3d71 Using constant FileBothDirectoryInformation instead of
hardcoded value 3. Added FIXME for other return types.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@695 423420c4-83ab-492f-b58f-81f9feb106b5
2004-05-11 12:46:39 +00:00
Peter Åstrand
eefe7d5f43 Added FIXME for ftruncate on FAT.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@689 423420c4-83ab-492f-b58f-81f9feb106b5
2004-05-06 08:17:14 +00:00
Michael Gernoth
aa8d0a2e9f Fix compilation on hp/ux
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@685 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-29 19:41:49 +00:00
Peter Åstrand
86da022558 Made internal functions static.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@663 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-17 07:14:41 +00:00
Peter Åstrand
b5e04dd98a FileEndOfFileInformation actually calls ftrunc().
FileAllocationInformation falls through to FileEndOfFileInformation.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@660 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-16 13:03:13 +00:00
Peter Åstrand
e1f84d5ef1 Notes on FileDispositionInformation. Closing before unlinking
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@658 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-16 11:37:24 +00:00
Peter Åstrand
acbe93c9a8 Added FILE_INFORMATION_CLASS and FS_INFORMATION_CLASS enums to disk.h. Using these in disk.c, instead of hardcoded numbers
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@652 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-15 20:53:32 +00:00
Peter Åstrand
ba9ac416f6 Moved disk #defs to disk.h
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@651 423420c4-83ab-492f-b58f-81f9feb106b5
2004-04-15 20:42:19 +00:00
Peter Kallden
351edec7e5 move disk info define to types.h
extract aio remove
handle errors in aio read / write
function that checks if handle is ok - seems windows cant keep track of them huh
- volker milde


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@626 423420c4-83ab-492f-b58f-81f9feb106b5
2004-03-04 08:24:40 +00:00
Michael Gernoth
1d915dcef0 mntent on solaris is different than on linux.
Need to port it when I have more time...
Disable it on solaris for the time being


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@617 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-28 10:52:29 +00:00
Peter Kallden
8afecde6e6 a bad diff by me in disk.c 1.13 - 1.14 this is where the code should be, thanks for the correction volker
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@615 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-24 15:24:38 +00:00
Peter Kallden
b8f371e2e1 get volume label for vfat and iso fs, requires mntent, did some ifdefs around the code, and we need a better name for the function anyone?
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@614 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-23 13:35:50 +00:00
Peter Kallden
ce2181a3d3 correct handling of offset - partial merge from volker mildes patch. at date only disk.c uses offset, so there wont be any problem.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@612 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-23 10:34:18 +00:00
Peter Kallden
714cbcd099 better error handling in rdpdr and disk.c - partial merge of Volker Mildes patch.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@611 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-23 09:58:16 +00:00
Peter Åstrand
731c8164a2 Indent fixes
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@607 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-15 21:19:28 +00:00
Michael Gernoth
7deb3bbc62 fixes for HP-UX
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@602 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-07 18:47:06 +00:00
Michael Gernoth
6a1b00fcb9 Cleanup some warnings (from SUNWspro-compiler)
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@601 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-07 17:32:21 +00:00
Peter Kallden
3f50b68bba support for deleting directories.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@600 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-06 12:57:26 +00:00
Peter Kallden
991d0cf8c5 merge andreas flicks work on file timestamps and directory handling, and the beginning of a device control
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@599 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-06 10:41:34 +00:00
Peter Kallden
10ec4b3b70 add some defines. handle dirs first, otherwise we can not create dirs
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@596 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-05 15:41:56 +00:00
Peter Kallden
325121b29e enable aio of read/write files. workaround server bug where directory flag is not set on create
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@595 423420c4-83ab-492f-b58f-81f9feb106b5
2004-02-03 14:03:42 +00:00
Michael Gernoth
628db36a74 fix g_null_pointer memleak
fixes for compiles on NetBSD & FreeBSD


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@575 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-22 20:31:59 +00:00
Michael Gernoth
f1363402cd os-support for stat(v)fs a little less(?) ugly
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@573 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-21 23:53:55 +00:00
Michael Gernoth
e448672db4 OpenBSD support
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@572 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-21 22:13:20 +00:00
Michael Gernoth
22248b26bc rdesktop compiles again on solaris
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@571 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-21 21:51:59 +00:00
Michael Gernoth
00af04fa57 some fixes for solaris compiles.
toupper was redefined to handle strings, now renamed to toupper_str
disk.c has some more problems (it uses statfs and dirfd)


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@569 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-21 18:02:38 +00:00
Peter Kallden
a61eac7b19 redirection of disk, lptport, printer, comport.
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@568 423420c4-83ab-492f-b58f-81f9feb106b5
2004-01-21 14:40:40 +00:00