⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dangling-symlink

📁 实战Linux编程的原代码,希望对学驱动的人能有所帮助
💻
字号:
#!/bin/sh# Make sure touch can create a file through a dangling symlink.# This was broken in the 4.0[e-i] test releases.if test "$VERBOSE" = yes; then  set -x  touch --versionfirm -f touch-target t-symlinkln -s touch-target t-symlinkfail=0# This used to infloop.touch t-symlink || fail=1test -f touch-target || fail=1rm -f touch-target t-symlinkif test $fail = 1; then  case $host_triplet in    *linux-gnu*)      case "`uname -r`" in        2.3.9[0-9]*)	  cat 1>&2 <<EOF====================================================$0: WARNING!!!This version of the Linux kernel causes touch to failwhen operating on dangling symlinks.====================================================EOF	  exit 77	  ;;      esac      ;;  esacfiexit $fail

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -