summaryrefslogtreecommitdiffstats
path: root/tapset-procfs.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-11-10 14:26:34 -0500
committerDave Brolley <brolley@redhat.com>2009-11-10 14:26:34 -0500
commitb513cd75dac185ac258dc8260a01891c30be6251 (patch)
treeb8e44de21178425a34e3b0d2f749b730f20d9610 /tapset-procfs.cxx
parentfd212bd5d99abc3518cf523eb7af2fea5ae206ba (diff)
parentf94baaeed17aba11aa46e9b46f0564217fc9978c (diff)
downloadsystemtap-steved-b513cd75dac185ac258dc8260a01891c30be6251.tar.gz
systemtap-steved-b513cd75dac185ac258dc8260a01891c30be6251.tar.xz
systemtap-steved-b513cd75dac185ac258dc8260a01891c30be6251.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'tapset-procfs.cxx')
-rw-r--r--tapset-procfs.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/tapset-procfs.cxx b/tapset-procfs.cxx
index fd8ad62a..aa75af42 100644
--- a/tapset-procfs.cxx
+++ b/tapset-procfs.cxx
@@ -479,30 +479,30 @@ procfs_builder::build(systemtap_session & sess,
// Make sure it doesn't start with '/'.
if (end_pos == 0)
throw semantic_error ("procfs path cannot start with a '/'",
- location->tok);
+ location->components.front()->tok);
component = path.substr(start_pos, end_pos - start_pos);
// Make sure it isn't empty.
if (component.size() == 0)
throw semantic_error ("procfs path component cannot be empty",
- location->tok);
+ location->components.front()->tok);
// Make sure it isn't relative.
else if (component == "." || component == "..")
- throw semantic_error ("procfs path cannot be relative (and contain '.' or '..')", location->tok);
+ throw semantic_error ("procfs path cannot be relative (and contain '.' or '..')", location->components.front()->tok);
start_pos = end_pos + 1;
}
component = path.substr(start_pos);
// Make sure it doesn't end with '/'.
if (component.size() == 0)
- throw semantic_error ("procfs path cannot end with a '/'", location->tok);
+ throw semantic_error ("procfs path cannot end with a '/'", location->components.front()->tok);
// Make sure it isn't relative.
else if (component == "." || component == "..")
- throw semantic_error ("procfs path cannot be relative (and contain '.' or '..')", location->tok);
+ throw semantic_error ("procfs path cannot be relative (and contain '.' or '..')", location->components.front()->tok);
}
if (!(has_read ^ has_write))
- throw semantic_error ("need read/write component", location->tok);
+ throw semantic_error ("need read/write component", location->components.front()->tok);
finished_results.push_back(new procfs_derived_probe(sess, base, location,
path, has_write));