Commit Graph

5 Commits (e2f2bfbe784bcc0d78ef7b675e50ab6fa361c910)

Author SHA1 Message Date
CodingKoopa 69c2377280 ntfsusermap.c: provide mode with mkdir
The desired mkdir does not seem to exist on Cygwin.

Fixes compiler error:

ntfsusermap.c: In function ‘outputmap’:
ntfsusermap.c:817:25: error: too few arguments to function ‘mkdir’
  817 |                         mkdir(fullname);
      |                         ^~~~~
In file included from /usr/include/sys/_default_fcntl.h:212,
                 from /usr/include/sys/fcntl.h:3,
                 from /usr/include/fcntl.h:13,
                 from ntfsusermap.c:113:
/usr/include/sys/stat.h:140:9: note: declared here
  140 | int     mkdir (const char *_path, mode_t __mode );
      |         ^~~~~
2024-03-08 06:37:05 +00:00
CodingKoopa 9e0b9ec23a ntfsprogs: provide WINAPI definition
Copied from a header in the public domain.

Fixes compiler error:

ntfsusermap.c:149:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘LookupAccountNameA’
  149 | BOOL WINAPI LookupAccountNameA(const char*, const char*, void*,
      |             ^~~~~~~~~~~~~~~~~~
ntfsusermap.c:151:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GetUserNameA’
  151 | BOOL WINAPI GetUserNameA(char*, u32*);
      |             ^~~~~~~~~~~~
2024-03-08 06:31:19 +00:00
Erik Larsson b11a5ea91b ntfsusermap.c: Fix warning about implicit conversion between enums. 2017-03-21 12:06:04 +01:00
Jean-Pierre André 3d7a28bfa5 Adapted secaudit and usermap (now ntfssecaudit and ntfsusermap) to ntfsprogs
These tools were originally developed for running on Windows and later
ported to libntfs-3g. This patch makes them similar to other ntfsprogs
tools, dropping the native Windows interfaces and using libntfs-3g on
all platforms.

There is no change in usage or supported features, only the command
names have changed.
2016-04-07 09:20:23 +02:00
Jean-Pierre André 0ded128808 Moved secaudit and usermap to directory ntfsprogs
These tools were developped before the ntfsprogs were merged into ntfs-3g,
redesigning them like the ntfsprogs make the code simpler.

Note : at this stage secaudit and usermap cannot be built any more.
2016-04-07 09:07:13 +02:00