瀏覽代碼

Merge branch 'user-trailing-spaces' of https://github.com/grulja/tigervnc

tags/v1.10.90
Pierre Ossman 3 年之前
父節點
當前提交
3f0f8474c5
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      unix/vncserver/vncsession-start.in

+ 1
- 1
unix/vncserver/vncsession-start.in 查看文件

@@ -33,7 +33,7 @@ fi

DISPLAY="$1"

USER=`grep "^${DISPLAY}=" "${USERSFILE}" 2>/dev/null | head -1 | cut -d = -f 2-`
USER=`grep "^ *${DISPLAY}=" "${USERSFILE}" 2>/dev/null | head -1 | cut -d = -f 2- | sed 's/ *$//g'`

if [ -z "${USER}" ]; then
echo "No user configured for display ${DISPLAY}" >&2

Loading…
取消
儲存