Skip to content

Commit

Permalink
Removed log message about use of backslash in GlobFileList
Browse files Browse the repository at this point in the history
Before, the glob compat function for Win32 used a regex internally. Thus
forward slashes was required. This is no longer the case.

Ticket: None
Changelog: None
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
  • Loading branch information
larsewi committed Jan 3, 2024
1 parent 74b8585 commit 93269e3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions libutils/file_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -1546,14 +1546,6 @@ StringSet* GlobFileList(const char *pattern)
SearchAndReplace(pattern, "**", candidates[pi]) :
xstrdup(pattern);

#ifdef _WIN32
if (strchr(expanded, '\\'))
{
Log(LOG_LEVEL_VERBOSE, "Found backslash escape character in glob pattern '%s'. "
"Was forward slash intended?", expanded);
}
#endif

if (glob(expanded, globflags, NULL, &globbuf) == 0)
{
for (size_t i = 0; i < globbuf.gl_pathc; i++)
Expand Down

0 comments on commit 93269e3

Please sign in to comment.