Bug 1268314 - journalctl --file does load file which has backslash in filename
journalctl --file does load file which has backslash in filename
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: systemd (Show other bugs)
7.3
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: systemd-maint
qe-baseos-daemons
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-02 09:40 EDT by Branislav Blaškovič
Modified: 2017-08-03 03:30 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Branislav Blaškovič 2015-10-02 09:40:14 EDT
Description of problem:
systemd-journal-remote --url http://... generated .journal files which looks like this:
    remote-localhost\:19531\\x2f.journal
I just found out that it is not so easy to load this journal via journalctl --file.

If you use  bash autocomplete (tab) on this filename, it generates:
    # journalctl --file /var/log/journal/remote/remote-localhost\:19531\\x2f.journal 
    Failed to add paths: No such file or directory
I also tried:
   # journalctl --file '/var/log/journal/remote/remote-localhost\:19531\x2f.journal'
   Failed to add paths: No such file or directory
The only working variant is:
   # journalctl --file /var/log/journal/remote/remote-localhost\:19531\\\\x2f.journal
This is really odd.



Version-Release number of selected component (if applicable):
systemd-219-17.el7.x86_64


Steps to Reproduce:
    1. touch a\\b.journal
    2. journalctl --file a\\b.journal

Actual results:
    Failed to add paths: No such file or directory


Expected results:
    journalctl can find this file

Additional info:
    I think, bug is somewhere in shared/util.c - function glob_extend().

Note You need to log in before you can comment on or make changes to this bug.