Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • N netctl
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
    • Locked Files
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • Arch LinuxArch Linux
  • netctl
  • Repository
Switch branch/tag
  • netctl
  • src
  • lib
  • globals
Find file BlameHistoryPermalink
  • Ivan Shapovalov's avatar
    Properly check existence of a connection type. · c2b31233
    Ivan Shapovalov authored May 17, 2013 and Jouke Witteveen's avatar Jouke Witteveen committed May 17, 2013
    
    
    Substituting "/dev/null/nonexistent" for an empty $Connection,
    of course, does generally work, but is somewhat ugly (esp. in that
    the string is appended to $CONN_DIR, so the resulting path may
    theoretically exist).
    
    Instead, substitute an empty string for the complete path if $Connection
    is empty: an empty string can never be readable.
    
    Signed-off-by: default avatarIvan Shapovalov <intelfx100@gmail.com>
    c2b31233