1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 11_check_disk_smb_NT_STATUS_ACCESS_DENIED.dpatch by
3
## Matthias Eble <psychotrahe@users.sourceforge.net>
5
## From 3c67c9cb60a4681a29e509fccbb333e0f6234f54 Mon Sep 17 00:00:00 2001
6
## From: Matthias Eble <psychotrahe@users.sourceforge.net>
7
## Date: Sun, 28 Nov 2010 21:43:48 +0100
8
## Subject: [PATCH] check_disk_smb now handles NT_STATUS_ACCESS_DENIED properly
11
## DP: Handles NT_STATUS_ACCESS_DENIED properly (http://bugs.debian.org/601696)
15
diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl
16
index 4698700..6783543 100755
17
--- a/plugins-scripts/check_disk_smb.pl
18
+++ b/plugins-scripts/check_disk_smb.pl
19
@@ -239,7 +239,7 @@ if (/\s*(\d*) blocks of size (\d*)\. (\d*) blocks available/) {
20
$answer = "Result from smbclient not suitable\n";
23
- if (/(Access denied|NT_STATUS_LOGON_FAILURE)/) {
24
+ if (/(Access denied|NT_STATUS_LOGON_FAILURE|NT_STATUS_ACCESS_DENIED)/) {
25
$answer = "Access Denied\n";