Skip to content

Commit c3afafa

Browse files
committed
-
1 parent ba6acd9 commit c3afafa

File tree

6 files changed

+41
-8
lines changed

6 files changed

+41
-8
lines changed

Changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
0.2.28
2+
13
0.2.27
24

35
2026-02-22 Brecht Sanders https://github.com/brechtsanders/

build/libdirtrav_static.depend

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,32 @@
11
# depslib dependency file v1.0
2+
1771760973 source:z:\libdirtrav\src\dirtrav.c
3+
"dirtrav_version.h"
4+
<string.h>
5+
<sys/types.h>
6+
<dirent.h>
7+
<sys/stat.h>
8+
<stdio.h>
9+
<windows.h>
10+
<sddl.h>
11+
<shlwapi.h>
12+
<sys/types.h>
13+
<pwd.h>
14+
<limits.h>
15+
<unistd.h>
16+
"dirtrav.h"
17+
"dirtravw.h"
18+
<windows.h>
19+
20+
1771761068 z:\libdirtrav\include\dirtrav_version.h
21+
22+
1762290184 z:\libdirtrav\include\dirtrav.h
23+
<stdlib.h>
24+
<stdint.h>
25+
<sys/stat.h>
26+
27+
1762290184 z:\libdirtrav\include\dirtravw.h
28+
<stdlib.h>
29+
<stdint.h>
30+
<sys/stat.h>
31+
<wchar.h>
32+

include/dirtrav.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*****************************************************************************
2-
Copyright (C) 2018 Brecht Sanders All Rights Reserved
2+
Copyright (C) 2013-2026 Brecht Sanders All Rights Reserved
33
44
Permission is hereby granted, free of charge, to any person obtaining a copy
55
of this software and associated documentation files (the "Software"), to deal

include/dirtrav_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*****************************************************************************
2-
Copyright (C) 2013-2018 Brecht Sanders All Rights Reserved
2+
Copyright (C) 2013-2026 Brecht Sanders All Rights Reserved
33
44
Permission is hereby granted, free of charge, to any person obtaining a copy
55
of this software and associated documentation files (the "Software"), to deal
@@ -47,7 +47,7 @@ THE SOFTWARE.
4747
/*! \brief minor version number */
4848
#define DIRTRAV_VERSION_MINOR 2
4949
/*! \brief micro version number */
50-
#define DIRTRAV_VERSION_MICRO 27
50+
#define DIRTRAV_VERSION_MICRO 28
5151
/*! @} */
5252

5353
/*! \cond PRIVATE */

include/dirtravw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*****************************************************************************
2-
Copyright (C) 2013-2018 Brecht Sanders All Rights Reserved
2+
Copyright (C) 2013-2026 Brecht Sanders All Rights Reserved
33
44
Permission is hereby granted, free of charge, to any person obtaining a copy
55
of this software and associated documentation files (the "Software"), to deal

src/dirtrav.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,12 +358,12 @@ DLL_EXPORT_DIRTRAV int DIRTRAVFN(traverse_directory) (const DIRCHAR* directory,
358358
}
359359
memset(&info, 0, sizeof(info));
360360
//set directory information
361-
topinfo.fullpath = info.external.fullpath;
362-
topinfo.remotehost = DIRTRAV_REMOTE_HOST_NOT_SET;
363361
//info.external.fullname = NULL;/////TO DO
364362
info.external.fullpath = (fullpath ? fullpath : directory);
365363
//info.external.parentpath = NULL;
366364
info.external.callbackdata = callbackdata;
365+
topinfo.fullpath = info.external.fullpath;
366+
topinfo.remotehost = DIRTRAV_REMOTE_HOST_NOT_SET;
367367
info.topinfo = &topinfo;
368368
status = DIRTRAVFN(iteration)(&info, filecallback, foldercallbackbefore, foldercallbackafter, callbackdata);
369369
//clean up
@@ -769,7 +769,7 @@ DLL_EXPORT_DIRTRAV DIRCHAR* DIRTRAVFN(prop_get_ownerid) (DIRTRAVFN(entry) entry)
769769
#ifdef _WIN32
770770
static DIRCHAR* sid_to_username (PSID sid, const DIRCHAR* server)
771771
{
772-
DIRCHAR* result;
772+
DIRCHAR* result = NULL;
773773
SID_NAME_USE accounttype;
774774
DIRCHAR* name;
775775
DIRCHAR* domain;
@@ -917,7 +917,7 @@ DLL_EXPORT_DIRTRAV DIRCHAR* DIRTRAVFN(get_remote_server_from_path) (const DIRCHA
917917
#ifdef _WIN32
918918
DIRCHAR* result = NULL;
919919
//canonicalize path
920-
DIRCHAR* realpath;
920+
DIRCHAR* realpath = NULL;
921921
size_t len;
922922
//determine full path
923923
if ((len = DIRWINFN(GetFullPathName)(path, 0, NULL, NULL)) > 0) {

0 commit comments

Comments
 (0)