mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Fixed a long-standing but unnoticed (or unreported) error in which
using the "-rcfile" switch fails if running magic from a user home directory.
This commit is contained in:
+1
-1
@@ -940,7 +940,7 @@ mainInitFinal()
|
||||
}
|
||||
}
|
||||
|
||||
if (getcwd(cwd, 512) == NULL || strcmp(cwd, home))
|
||||
if (getcwd(cwd, 512) == NULL || strcmp(cwd, home) || (RCFileName[0] == '/'))
|
||||
{
|
||||
/* Read in the .magicrc file from the current directory, if */
|
||||
/* different from HOME. */
|
||||
|
||||
Reference in New Issue
Block a user